breadcrumb

breadcrumb

Generates a breadcrumb for the current page based on the content levels it belongs to

Example

[%breadcrumb%]
    [%param *header%]
        <ul>
        <li><a href="[%url page:'home' /%]">Home</a></li>
    [%end param%]
    [%param *body%]
        <li><a href="[@url@]">[@name@]</a></li>
    [%/param%]
    [%param *body_current%]
        <li>[@name@]</li>
    [%/param%]
    [%param *footer%]
        </ul>
    [%/param%]
[%/breadcrumb%]

Usage

The breadcrumb tag will generate a site breadcrumb based on the content levels as defined in neto. The header tag ideally contains the link to the home page though is statically defined, however the body and body active parameters will list all the content levels that the active page is stored in, then print the page itself in the active tag.

Name Options Description
*header HTML & b@se tags Renders a single usable space above the body
*body HTML & b@se tags Runs for every page the current page is nested in
*body_current HTML & b@se tags Prints data for the current page
*footer HTML & b@se tags Renders a single usable space below the body

breacrumb data tags

Name Description
[@count@] An incremental count that runs each array
[@id@] The ID of the page
[@name@] The page name
[@url@] The url to the page
[@type@] The content type of the page, for example "category"

Was this article useful?

Be notified when this page is updated. Optional.