Skip to content

Instantly share code, notes, and snippets.

@dfeyer
Last active August 29, 2015 14:17
Show Gist options
  • Save dfeyer/bb7c0e79554a9ed11344 to your computer and use it in GitHub Desktop.
Save dfeyer/bb7c0e79554a9ed11344 to your computer and use it in GitHub Desktop.
A simple menu in TypoScript2 for Neos
mainMenu = TYPO3.TypoScript:Menu {
templatePath = 'resource://Your.Package/Private/Templates/NodeTypes/Menu.html'
entryLevel = 1
maximumLevels = 1
active.attributes {
class = 'nav-link active'
id = 'navigation-menu'
role = 'navigation'
}
current.attributes {
class = 'nav-link current'
}
normal.attributes {
class = 'nav-link normal'
}
attributes {
class = 'navigation-wrapper'
role = 'navigation'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment