Rootline - breadcrumb menu

The path of pages from the current page to the root page of the page tree is called "rootline".

A root line menu is a menu which shows you these pages one by one in their hierarchical order.

An HMENU with the property special = rootline creates a root line menu (also known as "breadcrumb trail") that could look like this:

Page level 1 > Page level 2 > Page level 3 > Current page
Copied!

Such a click path facilitates the user's orientation on the website and makes navigation to a certain page level easier.

Properties

Name Type Default
string /stdWrap
boolean false
boolean false

special.range

special.range
Type
string /stdWrap
Syntax
[begin-level] | [end-level]
Example
Example: Skip the current page

[begin-level] | [end-level] are interpreted like the .entryLevel for an HMENU).

special.reverseOrder

special.reverseOrder
Type
boolean
Default
false

If set to true, the order of the root line menu elements will be reversed.

special.targets.[level number]

special.targets.[level number]
Type
boolean
Default
false
Example
Example: Set targets for levels

For framesets. You can set a default target and a target for each level by using the level number as sub-property.

Examples

Example: Skip the current page

The following example will start at level 1 and does not show the page the user is currently on:

EXT:site_package/Configuration/TypoScript/setup.typoscript
temp.breadcrumbs = HMENU
temp.breadcrumbs.special = rootline
temp.breadcrumbs.special.range = 1|-2
Copied!

Example: Set targets for levels

Here the links to pages on level 3 will have target="page", while all other levels will have target="_top" as defined for the TMENU property target.

EXT:site_package/Configuration/TypoScript/setup.typoscript
page.2 = HMENU
page.2.special = rootline
page.2.special.range = 1|-2
page.2.special.targets.3 = page
page.2.1 = TMENU
page.2.1.target = _top
page.2.1.wrap = <ol> | <ol>
page.2.1.NO.linkWrap = <li> | </li>
Copied!