[英]Enable sliding for page resources with Fluid Powered TYPO3 vhs
[英]How to include a constant in a TYPO3 Fluid VHS menu
我有一個由Fluid Menu ViewHelper生成的簡單菜單:
<v:page.menu useShortcutData="TRUE" levels="3" expandAll="1" class="menu" classActive="act" substElementUid="1" excludePages="12,13,3" />
有多種語言,每種語言在導航中都隱藏着不同的頁面,我想在“ excludePages”部分中進行更改。
在Typoscript中,我將簡單地使用諸如{$ exclude}之類的常量標記。 在流體中添加標記會中斷菜單。 在這樣的在線Fluid設置中實現此目標的方法是什么?
有多種方法可以使Fluid不斷變化。
{f:cObject(typoscriptObjectPath: 'lib.myConstant')}
plugin.tx_myext.settings {
myonstant = TEXT
myconstant = 1,2,3
}
<f:section name="Configuration">
<flux:form id="mypage" options="{icon: 'Icons/Page/Standard.gif'}">
<flux:field.tree name="myConstantFromTRee" table="pages" parentField="pid" expandAll="0" multiple="1" minItems="0" maxItems="0" label="myConstantFromList" foreignLabel="title" size="10"/>
</flux:form>
<flux:grid>
<flux:grid.row>
<flux:grid.column colPos="0" name="main" />
</flux:grid.row>
</flux:grid>
</f:section>
並使用{settings.myConstantFromTRee}
訪問。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.