You are here:
Foswiki
>
System Web
>
HierarchicalNavigation
(23 Aug 2010,
ProjectContributor
)
(raw view)
E
dit
A
ttach
---+!! 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 <blockquote> <verbatim class="tml"> %INCLUDE{"%SYSTEMWEB%.HierarchicalNavigation" section="all"}% </verbatim> </blockquote> generates: %INCLUDE{"%SYSTEMWEB%.HierarchicalNavigation" section="all"}% When included in !WebLeftBar (using default PatternSkin) this is styled to: <div id="patternSideBarContents"> %INCLUDE{"%SYSTEMWEB%.HierarchicalNavigation" section="all"}% </div> ---+++ Displaying child topics <blockquote> <verbatim class="tml"> *Child topics:* %INCLUDE{"%SYSTEMWEB%.HierarchicalNavigation" section="children"}% </verbatim> </blockquote> generates: *Child topics:* %INCLUDE{"%SYSTEMWEB%.HierarchicalNavigation" section="children"}% When included in !WebLeftBar (using default Pattern skin) this is styled to: <div id="patternSideBarContents"> %INCLUDE{"%SYSTEMWEB%.HierarchicalNavigation" section="children"}% </div> <verbatim style="display:none;"> %STARTSECTION{"all"}%<div class="foswikiHierarchicalNavigation"> <ul> %SEARCH{ "parent" type="query" topic="%BASETOPIC%" web="%BASEWEB%" nonoise="on" format="<li class='foswikiParentTopic'>$percentICON{parent_gray}$percent [[$web.$parent][$parent]]</li>" }% <li class='foswikiCurrentTopic' style='font-weight:bold;'><nop>%BASETOPIC%</li>%INCLUDE{"%TOPIC%" section="childlist"}% </ul> </div><!--/foswikiHierarchicalNavigation-->%ENDSECTION{"all"}% %STARTSECTION{"children"}%<div class="foswikiHierarchicalNavigation"> <ul>%INCLUDE{"%TOPIC%" section="childlist"}%</ul> </div><!--/foswikiHierarchicalNavigation-->%ENDSECTION{"children"}% %STARTSECTION{"childlist"}%%SEARCH{ "parent.name='%BASETOPIC%'" web="%BASEWEB%" type="query" nonoise="on" format="<li class='childTopic'>$percentICON{line_ur_gray}$percent [[$web.$topic][$topic]]</li>" }%%ENDSECTION{"childlist"}% </verbatim> <!-- %JQREQUIRE{"chili"}% -->
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Edit
w
iki text
|
M
ore topic actions
Topic revision: r1 - 23 Aug 2010,
ProjectContributor
System
Log In
or
Register
Toolbox
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
User Reference
BeginnersStartHere
TextFormattingRules
Macros
FormattedSearch
QuerySearch
DocumentGraphics
SkinBrowser
InstalledPlugins
Admin Maintenance
Reference Manual
AdminToolsCategory
InterWikis
ManagingWebs
SiteTools
DefaultPreferences
WebPreferences
Categories
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Webs
Cosmo
Main
Sandbox
System
English
Français
Polski
Copyright © CC-BY-SA by the contributing authors. All material on this collaboration platform is copyrighted under CC-BY-SA by the contributing authors unless otherwise noted.
Ideas, requests, problems regarding Foswiki?
Send feedback