嗨我有一個擴展在TYPO3 7.6。我有兩個動作列表和顯示。在我的flexform中有一個可切換的控制器action.list操作正在工作。但顯示操作不起作用。請檢查我的代碼。可切換控制器行動不工作TYPO3 7.6
柔性成型
<switchableControllerActions>
<TCEforms>
<label>Display Type</label>
<onChange>reload</onChange>
<config>
<type>select</type>
<items type="array">
<numIndex index="1" type="array">
<numIndex index="0">List</numIndex>
<numIndex index="1">News->list</numIndex>
</numIndex>
<numIndex index="2" type="array">
<numIndex index="0">Detail</numIndex>
<numIndex index="1">News->show</numIndex>
</numIndex>
</items>
<minitems>0</minitems>
<maxitems>1</maxitems>
<size>1</size>
</config>
</TCEforms>
</switchableControllerActions>
列表視圖
<f:if condition="{news}">
<ul>
<f:for each="{news}" as="item">
<li>
<f:link.action action="show" controller="News" arguments="{news:'{item}'}" noCacheHash="false" pageUid="{settings.detailPid}" >
{item.title}
</f:link.action>
</li>
</f:for>
</ul>
</f:if>
我選擇的列表從詳細信息頁面在列表頁配置和選擇的細節。列表工作正常,但細節不起作用。
確保您在給定的「{settings.detailPid}」頁面上添加了詳細信息插件。 –
是的,我給了正確的詳細pid.Url創建是正確的,但頁面是空的 –
只是試圖調試'{新聞}',並檢查你是否在新聞參數中傳遞有效的參數值。如果沒有運行,只需添加像這樣的'arguments =「{news:item}」' –