%META:TOPICINFO{author="TWikiContributor" date="1284279242" format="1.1" version="4"}% %META:TOPICPARENT{name="WebHome"}% ---+!! Hierarchical Navigation *Navigation block that displays the current topic, its parent and children (if any).* %BR% This is intended to be included in other topics, for example in a side navigation bar (WebLeftBar). _NOTE: The lookup for parent and children will increase the loading time of your pages._ %TOC% ---++ Usage Two sections are defined: * =all= * =children= ---+++ Displaying the Parent - Current - Children block
%INCLUDE{"%SYSTEMWEB%.HierarchicalNavigation" section="all"}%
generates: %INCLUDE{"%SYSTEMWEB%.HierarchicalNavigation" section="all"}% When included in WebLeftBar (using default Pattern skin) this is styled to:
%INCLUDE{"%SYSTEMWEB%.HierarchicalNavigation" section="all"}%
---+++ Displaying child topics
*Child topics:* %INCLUDE{"%SYSTEMWEB%.HierarchicalNavigation" section="children"}%
generates: *Child topics:* %INCLUDE{"%SYSTEMWEB%.HierarchicalNavigation" section="children"}% When included in WebLeftBar (using default Pattern skin) this is styled to:
%INCLUDE{"%SYSTEMWEB%.HierarchicalNavigation" section="children"}%
%STARTSECTION{name="all"}%
%ENDSECTION{name="all"}% %STARTSECTION{name="children"}%
%ENDSECTION{name="children"}%%ENDSECTION{name="children"}% %STARTSECTION{name="childlist"}%%SEARCH{ "parent.name='%BASETOPIC%'" web="%BASEWEB%" type="query" nonoise="on" format="
  • [[$web.$topic][$topic]]
  • " }%%ENDSECTION{name="childlist"}%