【发布时间】:2016-10-29 22:13:25
【问题描述】:
我有以下通量模板:
<f:section name="Configuration">
<flux:form id="galleria" enabled="TRUE" label="Galleria image & video plugin">
<flux:form.sheet name="data" label="Images / Videos">
<flux:form.section name="settings.items" label="Items" inherit="0">
<flux:form.object name="item" label="Gallery item" inherit="0">
<flux:field.select name="type" label="Type"
items="{0: 'Please select', 1: 'Image', 2: 'Video', 3: 'IFrame', 4: 'Flickr', 5: 'Picasa', 6: 'Folder', 7: 'File Collection'}"
default="0"
requestUpdate="TRUE"/>
<f:debug>{type}</f:debug>
<f:comment>Image configuration fields</f:comment>
<flux:field.file name="original" label="Main image" displayCond="FIELD:type:=:1"
required="TRUE"/>
</flux:form.object>
</flux:form.section>
</flux:form.sheet>
</flux:form>
</f:section>
displayCond 不工作。即使我从选择列表命名类型中选择图像,输入字段也不会显示。 调试语句的输出显示“NULL”
如何将 displayCond 与 Flux:form.object 中的字段一起使用?
【问题讨论】:
-
我不确定,但可以试试类似: displayCond="FIELD:sectionName.objectName.type:=:1" b'coz type inside of section->object 正如你在你的描述题。 +1 提问,如果它有效,或者您找到了另一个解决方案,请不要忘记分享;)
-
FIELD:settings.items.item.type:=:1 对我不起作用。