我使用河馬CMS 10.通過控制檯,在HST:目錄我創建HST:containeritemcomponent與HST:的xtype,HST:referencecomponent,HST:iconpath,HST:標籤。在HST containercomponentfolder:工作區/ HST:
HST:到HST referencecomponent引用容器 /,其含有HST:的ContainerComponent與HST:的xtype設置爲HST.Span
如何在Hippo CMS中動態地將容器包含到另一個容器中,方法是從目錄工具欄中將它們拖放到其他容器中?
我需要容器,它可以包含(動態)可變數量的另一個不同的容器。舉例來說,我希望能夠從目錄中創建工具欄由drag'n'dropping組件這樣的結構:
<!-- this must be main container, already positioned in page -->
<div class="content">
<!-- this should appear when I drag'n'drop component from toolbar -->
<!-- at the same time, it must be container for other components itself -->
<div class="row">...</div>
<!-- this also comes from drag'n'dropped component from toolbar -->
<!-- and also container for other components -->
<div class="home banner">...</div>
<!-- any amount of containers -->
...
...
</div>
通過這種方式,我應該能夠動態地創建一些頁面結構。可能嗎?如果是,我該如何實現它?如果不是,如何繞過它,有什麼想法?
HippoCMS的網站對於這種類型的例子非常差,除此網站外沒有關於hippocms的信息。
我已經用一些例子稍微改寫了我的問題。你能再讀一遍嗎? – Nur4I
編輯我的答案! –
從你的最後一句話我可以得出結論,不可能做我想做的事情(只需從目錄工具欄拖動組件即可將容器動態添加到另一個容器中)。我對嗎? – Nur4I