我正在使用 Hippo CMS 10。通过控制台,在hst:catalog我创建了hst:containeritemcomponent和hst:xtype, hst:referencecomponent, hst:iconpath, hst:label。
hst:referencecomponent 引用hst :workspace/hst:containers /处的hst:containercomponent 文件夹,其中包含hst:containercomponent且hst:xtype设置为HST.Span
我需要容器,它可以包含(动态)可变数量的另一个不同容器。例如,我希望能够通过从目录工具栏中拖放组件来创建此结构:
<!-- 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 的信息。