我正在尝试在我的流体页面扩展中添加一个部分。
<f:section name="Configuration">
<flux:flexform id="default" label="Gallery Page" icon="{f:uri.resource(path: 'Icons/DefaultPage.png')}">
<flux:flexform.section name="images">
<flux:flexform.field.file name="ls" label="Landscape image" maxItems="1" minItems="1" required="1" showThumbnails="1" />
<flux:flexform.field.select name="lsAlign" label="Alignment of the landscape image" items="left,right" />
<flux:flexform.field.file name="pt" label="Portrait image" maxItems="1" minItems="1" required="1" showThumbnails="1" />
<flux:flexform.field.select name="ptAlign" label="Alignment of the portrait image" items="left,right" />
</flux:flexform.section>
<flux:flexform.grid>
<flux:flexform.grid.row>
<flux:flexform.grid.column colPos="0" name="Main Content" />
</flux:flexform.grid.row>
<flux:flexform.grid.row>
<flux:flexform.grid.column colPos="1" name="Gallery Images" />
</flux:flexform.grid.row>
</flux:flexform.grid>
</flux:flexform>
</f:section>
如果我尝试这个,如果我尝试顶部打开页面属性,后端将保持为空。一旦我删除该部分,一切都很好。还尝试在该部分内的字段周围放置一个 felexform.object
<flux:flexform.section name="images" label="images">
<flux:flexform.object name="imageObject" label="image object">
<flux:flexform.field.file name="ls" label="Landscape image" maxItems="1" minItems="0" required="0"
showThumbnails="1"/>
<flux:flexform.field.select name="lsAlign" label="Alignment of the landscape image"
items="left,right"/>
<flux:flexform.field.file name="pt" label="Portrait image" maxItems="1" minItems="0" required="0"
showThumbnails="1"/>
<flux:flexform.field.select name="ptAlign" label="Alignment of the portrait image"
items="left,right"/>
</flux:flexform.object>
</flux:flexform.section>
这也没有运气。
马库斯