[Neos] Re: Menus

Christian Ducrot christian at ducrot.de
Mon Jan 6 18:06:44 CET 2014


Hi,

trying to answer your menu question maybe this snippet from Packages/Sites/Vendor.Project/Resources/Private/TypoScripts/Library/Root.ts2 brings a little light to the setup. "entryLevel" and "maximumLevels" are known from TYPO3.

page = Page {
  // ...
  body {
    // ...
    parts {
      mainMenu = Menu
      mainMenu {
        templatePath = 'resource://WS.CaesarCleo/Private/Templates/TypoScriptObjects/MainMenu.html'
        entryLevel = 1
        maximumLevels = 0
      }
    }
    // ...
  }
}

For more complex things I think you have to use a custom ViewHelper.


More information about the Neos mailing list