Skip to content

Instantly share code, notes, and snippets.

@markhowellsmead
Created June 25, 2014 14:23
Show Gist options
  • Save markhowellsmead/c09498ec24634d23ede0 to your computer and use it in GitHub Desktop.
Save markhowellsmead/c09498ec24634d23ede0 to your computer and use it in GitHub Desktop.
Manual menu using TYPO3 Fluid syntax
# Create TYPO3 Fluid menu manually instead of automatically
# TYPO3 Extbase / Fluid
# www.mhm.li | m@mhm.li | 6/2014 | Free use, no credit required
<nav id="myMenu">
<ul>
<v:page.menu levels="4" expandAll="1">
<f:for each="{menu}" as="item">
<li class="{f:if(condition: item.active, then: 'act')}{f:if(condition: item.current, then: ' cur')}">
<f:link.page pageUid="{item.uid}" title="{item.title}">{item.title}</f:link.page>
<f:if condition="{item.hasSubPages}">
<ul><v:page.menu.sub pageUid="{item.uid}" /></ul>
</f:if></li>
</f:for>
</v:page.menu>
</ul>
</nav>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment