• ♡ Sponsor

    navChildren

    #Navigation

    This method is a shorthand version of the nav method, using the current page as the parent context.

    <@ navChildren { options } @>
    

    Options

    homepage: false Boolean
    Defines whether the homepage is included to a navigation with the root page as parent.
    excludeHidden: true Boolean
    Defines whether hidden pages are excluded from the navigation.
    class: false String|false
    An optional class of the wrapping <ul> element.
    active: false String|false
    An optional class for the active <li> element.

    Related

    Toolbox  ⁄
    breadcrumbs — Toolbox

    Creates the markup for a breadcrumb trail to the current page.

    Toolbox  ⁄
    nav — Toolbox

    Creates a simple HTML list as navigation below a given page. This method basically serves as a shorthand version of a foreach loop iterating over a pagelist of type "children".

    Toolbox  ⁄
    navSiblings — Toolbox

    This method is a shorthand version of the nav method, using the parent page of the current page as the parent context. The included pages are therefore all siblings of the current page.

    Toolbox  ⁄
    navTop — Toolbox

    This method is a shorthand version of the nav method, using the homepage "/" page as the parent context.

    Toolbox  ⁄
    navTree — Toolbox

    Generates the HTML for a full site tree. This method can be used as a shorthand for recursively iterating over pagelists to create nested lists of page links.

    Template Language  ⁄
    Recursive Navigations — Template Language

    Navigations and menus represent an essential part of any webiste. Automad provides convenient methods to iterate over the collection of pages recursively and therefore allows for creating site trees in a few simple steps. The basic concept behind a navigation tree in Automad is ...

    • Automad
    • Developer Guide
    • Building Themes
    • Template Language
    • Toolbox
    • navChildren
    Discuss
    Packages
    Release Notes
    Support
    Terms of Use
      Become a Sponsor
      GitHub
      Twitter
      Facebook
      Instagram
      2013-2022 by Marc Anton Dahmen
    Released under the MIT license

    A faceless machine, creating one's portrait in the internet.
  • Automad
  • Getting Started
  • System
  • User Guide
  • Developer Guide
  • Headless Mode
  • Discuss
  • Packages
  • Developer Guide ←
  • Building Themes ←
  • Template Language ←
  • Toolbox
  • breadcrumbs
  • filelist
  • img
  • nav
  • navChildren
  • navSiblings
  • navTop
  • navTree
  • newPagelist
  • pagelist
  • queryStringMerge
  • redirect
  • set