Zum Inhalt springen

Install rootline menu

A rootline menu (also known as a breadcrumb menu or navigation path) shows the visitor which page and page level they are currently on. This makes it easy to navigate to higher-level topics, especially when calling up pages directly via search engines.

The following TypoScript code can be used to create a rootline menu with different variants:

lib.rootline = HMENU
lib.rootline {
    special = rootline

    # show complete rootline
    special.range = 1|-1

    # Variation: Link only to the parent page
    #special.range = -2|-2

    # Text before the rootline menu
    wrap = <p>You are here:&nbsp;|</p>

    1 = TMENU
    1.target = _top
    1.NO {
        stdWrap.htmlSpecialChars = 1

        # Layout 1: Page 1 | Page 2 | Page 3
        #linkWrap = |&nbsp;&#124;&nbsp;|*||*| |

        # Layout 2: Page 1 > Page 2 > Page 3
        #linkWrap = |&nbsp;>&nbsp;|*||*| |

        # Layout 3: Page 1 >> Page 2 >> Page 3
        linkWrap = |&nbsp;&raquo;&nbsp;|*||*| |

        doNotLinkIt = |*| 0 |*| 1
    }
}

This page contains automatically translated content.

Updated: 09.04.2025