fluid - Expanding the fluid_styled_content menu in TYPO3 7 -
i looking way expand fluid_styled_content menu in typo3 7, , not sure how proceed. example type1 menu has following code:
<ce:menu.directory pageuids="{pageuids}" as="pages"> <f:if condition="{pages}"> <ul class="ce-menu ce-menu-1"> <f:for each="{pages}" as="page"> <li> <f:link.page pageuid="{page.uid}"> {page.title} </f:link.page> </li> </f:for> </ul> </f:if> </ce:menu.directory>
now i'm looking way expand menu shows subpages when available.
if page has subpages, show list subpages (as nested ul tree).
how can done fluid?
i not know view helper using (<ce:menu.directory />
). guess takes list of page uid´s , gets there children (menu.directory) , put them array/objectstorage ({pages}
) - create array of selected page uid´s , answer not correct.
you can use view helper <f:debug>{variablename}</f:debug>
debug have.
try this:
<ce:menu.directory pageuids="{pageuids}" as="pages"> <f:if condition="{pages}"> <ul class="ce-menu ce-menu-1"> <f:for each="{pages}" as="page"> <li> <f:link.page pageuid="{page.uid}"> {page.title} </f:link.page> <ce:menu.directory pageuids="{page.uid}" as="subpages"> <f:if condition="{subpages}"> <ul class="level-2"> <f:for each="{subpages}" as="subpage"> <li> <f:link.page pageuid="{subpage.uid}"> {subpage.title} </f:link.page> </li> </f:for> </ul> </f:if> </ce:menu.directory> </li> </f:for> </ul> </f:if> </ce:menu.directory>
if above dosen´t work try dump {page}
in debug tag , update question output.
Comments
Post a Comment