【发布时间】:2015-03-09 13:04:32
【问题描述】:
这个问题与Access fluidpage configuration in template有关。
我尝试与上述问题相同。但由于flux:flexform 已过时并被flux:form 取代,可能会有一些我不知道的变化。
使用以下代码,我尝试从菜单项访问 flex:form.fields:
<v:page.menu levels="1" as="sections">
<ul class="main-navi">
<f:for each="{sections}" as="section" iteration="iteration">
<f:debug>{section}</f:debug>
<flux:form.data table="pages" field="tx_fed_page_flexform" uid="{section.uid}" as="sectionData" />
<f:debug>{sectionData}</f:debug>
<li {f:if(condition: section.active, then: ' class="active"')}>
<f:link.page pageUid="{section.uid}" title="{section.linktext}">{ section.title}</f:link.page>
<div class="testmenu"></div>
</li>
</f:for>
</ul>
</v:page.menu>
在 Debug 部分 (<f:debug>{section}</f:debug>) 我看到了 tx_fed_page_flexform 的值:
tx_fed_page_flexform => '<?xml version="1.0" encoding="utf-8" standalone="
;yes" ?> <T3FlexForms> <data> <sheet inde
x="options"> <language index="lDEF">
; <field index="text"> &
lt;value index="vDEF">test1234</value> &l
t;/field> </language> </sheet> </d
ata> </T3FlexForms>' (336 chars)
我搜索的值是test1234。
但是当我调试 sectionData (<f:debug>{sectionData}</f:debug>) 时,我只得到一个NULL。
【问题讨论】:
标签: typo3 fluid typo3-6.2.x