You are here: Foswiki>ANFF Web>ANFFTopbar (19 Jul 2016, NadiaCourt)Edit Attach

ANFFTopbar

Include main navigation with:

" %INCLUDE{"HorizontalNavigationExample" section="main"}%

Include meta navigation with:

" %INCLUDE{"HorizontalNavigationExample" section="meta"}%

Include sections

" %STARTSECTION{"main"}%<div id="patternTopBarButtons"><ul>
%INCLUDE{
    "%TOPIC%" section="topbarbutton"
    ID="" DESTWEB="%BASEWEB%" DESTTOPIC="WebHome" LABEL="ANFF Home"
}%
%INCLUDE{
    "%TOPIC%" section="topbarbutton"
    ID="" DESTWEB="%BASEWEB%" DESTTOPIC="Tools" LABEL="Tools"
}%
%INCLUDE{
    "%TOPIC%" section="topbarbutton"
    ID="" DESTWEB="%BASEWEB%" DESTTOPIC="LabMaintenance" LABEL="Lab Maintenance"
}%
%INCLUDE{
    "%TOPIC%" section="topbarbutton"
    ID="" DESTWEB="%BASEWEB%" DESTTOPIC="Safety" LABEL="Safety"
}%
%INCLUDE{
    "%TOPIC%" section="topbarbutton"
    ID="" DESTWEB="%BASEWEB%" DESTTOPIC="Computing" LABEL="Computing"
}%
%INCLUDE{
    "%TOPIC%" section="topbarbutton"
    ID="" DESTWEB="%BASEWEB%" DESTTOPIC="Contacts" LABEL="Contact Details"
}%
%INCLUDE{
    "%TOPIC%" section="topbarbutton"
    ID="" DESTWEB="%BASEWEB%" DESTTOPIC="ProcessNotes" LABEL="Processing"
}%
%INCLUDE{
    "%TOPIC%" section="topbarbutton"
    ID="" DESTWEB="%BASEWEB%" DESTTOPIC="GeneralBusiness" LABEL="General"
}%

</ul><div class="foswikiClear"></div></div>%ENDSECTION{"main"}%

%STARTSECTION{"topbarbutton"}%<li%IF{
    "'$ID' and '%ID%'!=''"
    then=" id=\"%ID%\""}%>
<a href="%SCRIPTURL{"view"}%/%DESTWEB%/%DESTTOPIC%" class="%IF{
    "'%DESTTOPIC%'='%TOPIC%'"
    then="active"
    else="inactive"
}%">%LABEL%</a></li>%ENDSECTION{"topbarbutton"}%


%STARTSECTION{"meta"}%<div id="foswikisiteUserBar"><ul>%IF{
    "context authenticated"
    then='<li>%MAKETEXT{
        "Hello [_1]"
        args="[[%WIKIUSERNAME%][%SPACEOUT{%WIKINAME%}%]]"
    }%</li>'
}%%IF{
    "$ LOGOUT != ''"
    then='<li>%LOGOUT%</li>'
}%%IF{
    "$ LOGIN != '' and not context authenticated"
    then='<li>You are visiting this site as: [[%WIKIUSERNAME%][%WIKINAME%]]</li>
        <li>%LOGIN% %IF{
            "context registration_supported AND context registration_enabled"
            then="%MAKETEXT{"or"}% [[%SYSTEMWEB%.UserRegistration][%MAKETEXT{"Register"}%]]"
        }%</li>'
}%<li>[[%USERSWEB%.WikiUsers][Users]]</li></ul></div>%ENDSECTION{"meta"}%

Access Control

Topic revision: r9 - 19 Jul 2016, NadiaCourt
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback