Definition of site wide horizontal menu
Implementation
%STARTINCLUDE%<ul>
%INCLUDE{"%USERSWEB%.SiteMenu" section="homemenu"}%
%IF{"$WIKINAME != 'WikiGuest' and not $'WIKINAME' ingroup 'AdminGroup'"
then="$percntINCLUDE{\"%USERSWEB%.SiteMenu\" section=\"userhelpmenu\"}$percnt"
}% %IF{"'%USERNAME%' ingroup 'AdminGroup'"
then="$percntINCLUDE{\"%USERSWEB%.SiteMenu\" section=\"adminhelpmenu\"}$percnt
$percntINCLUDE{\"%USERSWEB%.SiteMenu\" section=\"adminmenu\"}$percnt"
}%
</ul>%STOPINCLUDE%
%STARTSECTION{"homemenu"}%<noautolink>
<li>[[Home.%HOMETOPIC%][%MAKETEXT{"Home"}%]]</li>
<li>[[Autos.%HOMETOPIC%][%MAKETEXT{"Autos"}%]]</li>
<li>[[Medien.%HOMETOPIC%][%MAKETEXT{"Medien"}%]]</li>
<li>[[Blogs.%HOMETOPIC%][%MAKETEXT{"Blogs"}%]]</li>
</noautolink>%ENDSECTION{"homemenu"}%
%STARTSECTION{"userhelpmenu"}%<li>[[%SYSTEMWEB%.%HOMETOPIC%][%MAKETEXT{"Help"}%]]
<ul>
<li>[[Sandbox.%HOMETOPIC%][%JQICON{"briefcase"}% %MAKETEXT{"Sandbox"}%]]</li>
<li>[[%SYSTEMWEB%.ChangeEmailAddress][%JQICON{"mail"}% %MAKETEXT{"Change Registered Email"}%]]</li>
<li>[[%SYSTEMWEB%.UserDocumentationCategory][%JQICON{"book"}% %MAKETEXT{"Foswiki User docs"}%]]</li>
</ul>
</li>%ENDSECTION{"userhelpmenu"}%
%STARTSECTION{"adminhelpmenu"}%<li>[[%SYSTEMWEB%.%HOMETOPIC%][%MAKETEXT{"Help"}%]]
<ul>
<li>[[%SYSTEMWEB%.%HOMETOPIC%][%JQICON{"book"}% %MAKETEXT{"Foswiki Docs"}%]]</li>
<li>[[%SYSTEMWEB%.AdminDocumentationCategory][%JQICON{"book_key"}% %MAKETEXT{"Admin docs"}%]]</li>
<li>[[%SYSTEMWEB%.DeveloperDocumentationCategory][%JQICON{"book_edit"}% %MAKETEXT{"Developer docs"}%]]</li>
<li>[[%SYSTEMWEB%.ReferenceManual][%JQICON{"book_open"}% %MAKETEXT{"Reference manual"}%]]</li>
<li>[[%SYSTEMWEB%.InstalledPlugins][%JQICON{"plugin"}% %MAKETEXT{"Installed plugins"}%]]</li>
<li>[[Sandbox.%HOMETOPIC%][%JQICON{"briefcase"}% %MAKETEXT{"Sandbox"}%]]</li>
</ul>
</li>%ENDSECTION{"adminhelpmenu"}%
%STARTSECTION{"adminmenu"}%<noautolink>
<li><a>%MAKETEXT{"Admin"}%</a>
<ul>
%IF{"isweb 'Applications'"
then="<li>
[[Applications.%HOMETOPIC%][%JQICON{"application_double"}% %MAKETEXT{"Applications"}%]]
<ul class=\"ajaxMenu {url:'%SCRIPTURL{"view"}%/%SYSTEMWEB%/SiteMenu?skin=text;section=subwebs;theweb=Applications;icon=application%IF{"defined EXCLUDEWIKIAPPS" then=";excludeweb=%EXCLUDEWIKIAPPS%"}%'}\"></ul>
</li>"
}%<!-- -->
<li><a>%JQICON{"cog"}% Web Tools </a><ul>
<li>[[%BASEWEB%.WebSearch][%ICON{searchtopic}% Search]]</li>
<li>[[%BASEWEB%.WebChanges][%ICON{changes}% Changes]]</li>
<li>[[%BASEWEB%.WebTopicList][%ICON{index}% Index]]</li>
<li>[[%BASEWEB%.WebNotify][%ICON{notify}% Notifications]]</li>
<li>[[%BASEWEB%.WebRss][%ICON{rss}% RSS]]</li>%IF{"istopic '%BASEWEB%.WebStatistics'"
then="<li>[[$percntBASEWEB$percnt.WebStatistics][$percntICON{statistics}$percnt Statistics]]</li>"
}%%IF{"istopic '%BASEWEB%.Category'"
then="<li>[[$percntBASEWEB$percnt.Category][$percntICON{sitetree}$percnt Categories]]</li>"
}%
</ul></li>
<li><a>%JQICON{"application_cascade"}% Web List</a><ul class="ajaxMenu {url:'%SCRIPTURL{"view"}%/Main/SiteMenu?skin=text;section=webs'}" style='width:12em;'></ul></li>
<li>[[%BASEWEB%.%WEBPREFSTOPIC%][%JQICON{"wrench"}% %MAKETEXT{"Web preferences"}%]]</li>
<li>[[%LOCALSITEPREFS%][%JQICON{"wrench_orange"}% %MAKETEXT{"Site preferences"}%]]</li>
<li>[[%SYSTEMWEB%.SitePermissions][%JQICON{"key"}% %MAKETEXT{"Site permissions"}%]]</li>
%IF{"context ActivityStreamPluginEnabled"
then="<li>[[%SYSTEMWEB%.SiteActivityStream][%JQICON{"user"}% %MAKETEXT{"Site activities"}%]]</li>"
}%<!-- -->
<li>[[%SCRIPTURLPATH{"configure"}%][%JQICON{"wand"}% %MAKETEXT{"Configure Foswiki"}%]]</li>
<li> <hr /> </li>
<li>[[%USERSWEB%.WikiUsers][%ICON{"person"}% %MAKETEXT{"Users"}%]]</li>
<li>[[%USERSWEB%.WikiGroups][%ICON{"group"}% %MAKETEXT{"Groups"}%]]</li>
<li> <hr /> </li>
<li>[[%SYSTEMWEB%.WebCreateNewWeb][%JQICON{"folder_add"}% %MAKETEXT{"Create a new web"}%]]</li>
<li>[[%SCRIPTURL{"rename"}%/%BASEWEB%/%BASETOPIC%?action=renameweb][%JQICON{"folder_go"}% %MAKETEXT{"Rename current web"}%]]</li>
</ul>
</li>
</noautolink>%ENDSECTION{"adminmenu"}%
<li>[[%USERSWEB%.DenxTheme][%JQICON{"eye"}% %MAKETEXT{"Site Skin"}%]]</li>
Web List
%STARTSECTION{"webs"}%
<li>[[%SYSTEMWEB%.SiteMap][%ICON{sitemap}% Site Map]]</li>
%FLEXWEBLIST{
webs="public"
subwebs="none"
exclude="Applications"
adminwebs="Applications|TWiki|Trash"
format="<li $percntIF{\"'$nrsubwebs'!='0'\" then=\"class='hasSubMenu'\"}$percnt><b><a href='$percntSCRIPTURL{view}$percnt/$web/%HOMETOPIC%' title='$sitemapwhat'>$name</a></b>$percntIF{\"'$nrsubwebs'!='0'\" then=\"<ul class=\\"ajaxMenu {url:'$percntSCRIPTURL{view}$percnt/%USERSWEB%/SiteMenu?skin=text;section=subwebs;theweb=$web;icon=application;'}\\"></ul>\"}$percnt</li>"
separator=" $n"
}%
%ENDSECTION{"webs"}%
Subwebs
%STARTSECTION{"subwebs"}%%FLEXWEBLIST{
include="%URLPARAM{"theweb" default="%theweb%"}%.*"
exclude="%URLPARAM{"theweb" default="%theweb%"}%|.*(%URLPARAM{"excludeweb" default="does not exist"}%).*"
header="<li>"
subheader="<ul><li>"
format="[[$web.%HOMETOPIC%][%JQICON{
"%URLPARAM{"icon"
default="%IF{"defined icon" then="%icon%" else="bullet_white"}%"
}%"}% $name]]"
separator="</li><li>"
subfooter="</li></ul>"
footer="</li>"
}%%ENDSECTION{"subwebs"}%