Search code examples
typo3typo3-9.x

How do I add navigation menu on sidebar in TyPO3


I want to add a submenu on sidebar in some selected pages. The idea is like the following:

http://venicexplorer.com/explore-venice/annual-events/carnival-of-venice.html

How can I do that on TYPO3?

Thanks Prasun


Solution

  • For buildung menus there a two ways.

    1) The traditional way is by using typoscript and HMENU. Here you find the documentation:

    https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/ContentObjects/Hmenu/Index.html

    2) The alternative is to use MenuProcessors. Here you find the documentation:

    https://docs.typo3.org/m/typo3/tutorial-sitepackage/master/en-us/MainMenuCreation/Index.html

    To show only the subpages of a special page you can use a condition in your fluid template where you integrate your menu:

    [PIDupinRootline = uid]
    
    ... here is your menu ...
    
    [end]
    

    The uid belongs to the page from which you want to display the subpages.