Skip to topic | Skip to bottom
Home
TWiki
TWiki.WebMenur1.1 - 05 May 2004 - 14:15 - IanKlufttopic end

Start of topic | Skip to actions
Related Topics: GnuSkin, GnuSkinPlugin?, GnuSkinPluginDev?, GnuSkinInstall, TWikiPreferences, TWikiPlugins

WebMenu

This topic serves as the configuration of the left-hand menu.

Installation:

See GnuSkinInstall for details of download and installation instructions.

Syntax

Please consult the WebMenuFormat topic for more help on the formatting of this topic. The below text only serve as a brief syntax reminder.

%WEB{name="..." home="<Web>¦<Web>.<Topic>" [expand="always¦never"]}% Entry for a Web heading
%ITEM{name="..." [topic="..."]}% Define a Web topic item
%LINK{name="..." [url="..."]}% Define generic entry
%DEFAULTITEMS% Default Web topic items

Example

This sets the default items to be presented for all webs below who reference this variable. It is a comma separated list of items, with no spaces between the ITEM definitions. See the source for this page for an example.

  • SET DEFAULTITEMS = %ITEM{name="WebChanges" topic="WebChanges"}%,%ITEM{name="WebIndex" topic="WebIndex"}%,%ITEM{name="WebNotify" topic="WebNotify"}%,%ITEM{name="WebStatistics" topic="WebStatistics"}%

First the Main web. We call it People because mostly it is only used for all the registered users of the TWiki.

%WEB{name="People" home="Main"}%

%ITEM{name="Everyone" topic="TWikiUsers"}%

%DEFAULTITEMS%

Next is the TWiki web. It holds a lot of reference pages, as well as the preferences topic for the entire TWiki system.

%WEB{name="TWiki System" home="TWiki"}%

%ITEM{name="Welcome" topic="WelcomeGuest"}%

%ITEM{name="Tutorial" topic="TWikiTutorial"}%

%DEFAULTITEMS%

%LINK%{name="GNU" url="http://www.gnu.org"}%

Third is the Knowledge Web, we provide the complete name so beginners also will understand what it is. Like we did for the TWiki web, above, we add the HTML special character &nbsp; instead of a regular space. This way we make sure there is a space and that the user agent will not break the row between these two words.

%WEB{name="Knowledge Web" home="Know"}%

%DEFAULTITEMS%

Last is the Test web. We call it Sandbox so that even a beginner can make a qualified guess of what it is.

%WEB{name="Sandbox" home="Sandbox"}%

%DEFAULTITEMS%

Contact

For help and advice, please email JoachimNilsson?, or make use of the GnuSkinPluginDev? public forum.
to top


You are here: TWiki > WebMenu

to top

Copyright © 1999-2009 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Picnic? Send feedback