Prints a list of content pages used for building a navigation.

Syntax

{InfoNavigation(
    classes: string,
    first: boolean,
    helper: string,
    levels: int,
    parent: int,
    show: string,
    sort: string
)}

Scope

Required scope: globaali

Scope in helper attribute: sisältösivu

Tags with global scope can be used on any template and in any tag.

Attribuutit

classes:

Class names that are given to every list element.

Allowed values: class names as strings.

Use space characters to separate the classes that are to be given to the same element. Use pipes to separate the classes that are to be given to different list elements.

E.g. classes:'ekaLuokka tokaLuokka | jokaToisenLuokka jokaToisenTokaLuokka'

See also detailed instructions on how to define list class names.

first:

When necessary, sets a class name to the navigation list. The class name makes it clear that the list is the navigation's or a navigation element's first element.

Allowed values:true/false. The default value is true.

helper:

Defines the content and output format of a single list element.

Allowed values: the Interface and HTML markup that define the output's markup and content.

The helper attribute can be used in two ways:

  1. you can indicate the desired markup directly as the attribute's value, or
  2. you can indicate a reference to a file with the desired markup as the attribute's value.

    The reference should be indicated in relation to the theme's root directory.

See also detailed instructions on using the helper attribute.

parent:

Defines the page to whose subpages navigation links should be printed.

Allowed values:integers. Use the ID number of the selected page as the attribute's value.

show:

Sets the tag to print either the complete navigation or just the active pages.

Allowed values: 'all'

If you only want to print visible pages, don't use this attribute at all.

sort:

Defines how pages should be sorted.

Allowed values:

  • 'name_asc': alphabetical order based on names
  • 'name_desc': reversed alphabetical order based on names
  • 'manual': uses the order defined in the admin panel (default value)
after/before:

By using the after and before attributes you can define content that is output either after or before the tag's output.

Allowed values:The HTML and Interface markup

E.g.

  • before: '<p>Tämä merkkaus näkyy ennen tagin omaa sisältöä.</p>'
  • after: '<p>Tämä taas näkyy tagin oman sisällön jälkeen.</p>'

If the tag does not produce any content, neither the content of the after and before attributes will be output.

escape:

Adds an escape character before quotation marks in the output.

The attribute makes it easier to process the tag-produced content when using JavaScript.

Allowed values:true/false. The default value is false.

or:

Defines alternative content that is displayed if the tag itself does not produce any content.

Allowed values:The HTML and Interface markup

E.g. or:'Sisältöä ei löytynyt.'