Difference: HierarchicalNavigation (1 vs. 4)

Revision 42010-09-12 - TWikiContributor

 
META TOPICPARENT name="WebHome"

Hierarchical Navigation

Navigation block that displays the current topic, its parent and children (if any).
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.

Usage

Two sections are defined:
  • all
  • children

Displaying the Parent - Current - Children block

%INCLUDE{"%SYSTEMWEB%.HierarchicalNavigation" section="all"}%
generates:

<--/twikiHierarchicalNavigation-->

When included in WebLeftBar (using default Pattern skin) this is styled to:

<--/twikiHierarchicalNavigation-->

Displaying child topics

*Child topics:*
%INCLUDE{"%SYSTEMWEB%.HierarchicalNavigation" section="children"}%
generates:

Child topics:

<--/twikiHierarchicalNavigation-->

When included in WebLeftBar (using default Pattern skin) this is styled to:

<--/twikiHierarchicalNavigation-->

%STARTSECTION{name="all"}%<div class="twikiHierarchicalNavigation">
<ul>
%SEARCH{
"parent"
type="query"
topic="%BASETOPIC%"
web="%BASEWEB%"
nonoise="on"
format="<li class='twikiParentTopic'><img src='%ICONURL{parent_gray}%' width='16' height='16' alt='' border='0' /> [[$web.$parent][$parent]]</li>"
}%
<li class='twikiCurrentTopic' style='font-weight:bold;'><nop>%BASETOPIC%</li>%INCLUDE{"%TOPIC%" section="childlist"}%
</ul>
</div><!--/twikiHierarchicalNavigation-->%ENDSECTION{name="all"}%

%STARTSECTION{name="children"}%<div class="twikiHierarchicalNavigation">
<ul>%INCLUDE{"%TOPIC%" section="childlist"}%</ul>
</div><!--/twikiHierarchicalNavigation-->%ENDSECTION{name="children"}%</div>%ENDSECTION{name="children"}%

%STARTSECTION{name="childlist"}%%SEARCH{
"parent.name='%BASETOPIC%'"
web="%BASEWEB%"
type="query"
nonoise="on"
format="<li class='childTopic'><img src='%ICONURL{line_ur_gray}%' width='16' height='16' alt='' border='0' /> [[$web.$topic][$topic]]</li>"
}%%ENDSECTION{name="childlist"}%

Revision 32006-11-25 - TWikiContributor

 
META TOPICPARENT name="WebHome"

Hierarchical Navigation

Navigation block that displays the current topic, its parent and children (if any).
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.

Usage

Two sections are defined:
  • all
  • children

Displaying the Parent - Current - Children block

%INCLUDE{"%SYSTEMWEB%.HierarchicalNavigation" section="all"}%
generates:

<--/twikiHierarchicalNavigation-->

When included in WebLeftBar (using default Pattern skin) this is styled to:

<--/twikiHierarchicalNavigation-->

Displaying child topics

*Child topics:*
%INCLUDE{"%SYSTEMWEB%.HierarchicalNavigation" section="children"}%
generates:

Child topics:

<--/twikiHierarchicalNavigation-->
Added:
>
>
When included in WebLeftBar (using default Pattern skin) this is styled to:
 
Changed:
<
<
>
>
<--/twikiHierarchicalNavigation-->
Deleted:
<
<
 
Deleted:
<
<
  • HierarchicalNavigation
<--twikiChildTopics-->
<--/twikiHierarchicalNavigation-->
 
Added:
>
>
%STARTSECTION{name="all"}%<div class="twikiHierarchicalNavigation">
<ul>
%SEARCH{
"parent"
type="query"
topic="%BASETOPIC%"
web="%BASEWEB%"
nonoise="on"
format="<li class='twikiParentTopic'><img src='%ICONURL{parent_gray}%' width='16' height='16' alt='' border='0' /> [[$web.$parent][$parent]]</li>"
}%
<li class='twikiCurrentTopic' style='font-weight:bold;'><nop>%BASETOPIC%</li>%INCLUDE{"%TOPIC%" section="childlist"}%
</ul>
</div><!--/twikiHierarchicalNavigation-->%ENDSECTION{name="all"}%
 
Changed:
<
<
>
>
<--/twikiHierarchicalNavigation-->
Deleted:
<
<
<--twikiChildTopics-->
<--/twikiHierarchicalNavigation-->
 
Changed:
<
<
>
>
%SEARCH{
Added:
>
>
"parent.name='HierarchicalNavigation'" web="TWiki" type="query" nonoise="on" format="
  • $topic
  • " }%
     

    Revision 22006-11-25 - TWikiContributor

     
    META TOPICPARENT name="WebHome"

    Hierarchical Navigation

    Navigation block that displays the current topic, its parent and children (if any).
    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.

    Usage

    Two sections are defined:
    • all
    • children

    Displaying the Parent - Current - Children block

    Changed:
    <
    <
    <--/twikiHierarchicalNavigation-->
    >
    >
    <--/twikiHierarchicalNavigation-->
      generates:
    Changed:
    <
    <
    <--/twikiHierarchicalNavigation-->
    >
    >
    <--/twikiHierarchicalNavigation-->
     

    When included in WebLeftBar (using default Pattern skin) this is styled to:

    Changed:
    <
    <
    <--/twikiHierarchicalNavigation-->
    >
    >
    <--/twikiHierarchicalNavigation-->
     

    Displaying child topics

    *Child topics:*
    Changed:
    <
    <
    <--/twikiHierarchicalNavigation-->
    >
    >
    <--/twikiHierarchicalNavigation-->
      generates:

    Child topics:

    Changed:
    <
    <
    <--/twikiHierarchicalNavigation-->
    >
    >
    <--/twikiHierarchicalNavigation-->
     

    • HierarchicalNavigation
    <--twikiChildTopics-->
    <--/twikiHierarchicalNavigation-->

    <--twikiChildTopics-->
    <--/twikiHierarchicalNavigation-->

    Revision 12006-11-25 - TWikiContributor

     
    META TOPICPARENT name="WebHome"

    Hierarchical Navigation

    Navigation block that displays the current topic, its parent and children (if any).
    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.

    Usage

    Two sections are defined:
    • all
    • children

    Displaying the Parent - Current - Children block

    %INCLUDE{"%TWIKIWEB%.HierarchicalNavigation" section="all"}%
    
    generates:

    <--/twikiHierarchicalNavigation-->

    When included in WebLeftBar (using default Pattern skin) this is styled to:

    <--/twikiHierarchicalNavigation-->

    Displaying child topics

    *Child topics:*
    %INCLUDE{"%TWIKIWEB%.HierarchicalNavigation" section="children"}%
    
    generates:

    Child topics:

    <--/twikiHierarchicalNavigation-->

    • HierarchicalNavigation
    <--twikiChildTopics-->
    <--/twikiHierarchicalNavigation-->

    <--twikiChildTopics-->
    <--/twikiHierarchicalNavigation-->

     
    This site is powered by the TWiki collaboration platform Powered by Perl This site is powered by the TWiki collaboration platformCopyright © 1999-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
    Ideas, requests, problems regarding TWiki? Send feedback
    Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.HierarchicalNavigation.