Index Gen Add-On
To see the results of this example please look at the navigation bar on the left of this page :
(more on this example below).
This plugin is designed so you can quickly make an navigation 'bar' of topics in a web.
With this Addon and customised skins you can make 'websites' from any TWiki web. It was originally designed to make the creation of published online manuals easy, allowing you to choose topics from a web to include in manual, then place headings to separate groups of chapters, make the chapter topics readable (non-wiki words), and then use a skin that includes the index you just created. Although the process is developed for online manuals it may be suitable for any number of outputs requiring a typical website navigation bar.
It uses an easy drag and drop method to generate an 'index' (a topic called _index) which can be included in templates. Names of each link can be defined separately to the topic name to make for nice non-wikiname navigation.
Originally made for http://www.flossmanuals.net
Set the format of the link to be made in the WebPreferences
of the web you are working on. To do this set the
variable to something like:
This would generate links in the navbar similar to this:
Alternatively you could use IndexGenAddOn
in combination with a publishing plugin and reference and html file like so:
This would generate links in the navbar similar to this :
Once that is done go to
Drag and drop the topics from the selected web onto the bar on the right you can arrange them in the order you like. Double click on the topic names to change the text of the link. Separators (Headings) can be made by clicking on the '---' text.
When you have finished, press 'save' and a new topic is created (_index) on the web you are working on. If you then use an
statement in a template the navbar will show at the appropriate place.
For best results use css to define the look and feel of the navigation bar.
The css tags look something like this (using the Audacity example):
<li><a href="/Audacity/DigitalAudio">WHAT IS DIGITAL AUDIO?</a></li>
The following table shows the various configuration variables and their meaning. The first column shows the variable to use if using a TWiki preference variable (i.e. Set VARIABLE = ). The third column gives the default value if TWiki preference variable is not used.
Add-On Installation Instructions
You do not need to install anything on the browser to use this add-on. The following instructions are for the administrator who installs the add-on on the server where TWiki is running.
- Download the ZIP file from the Add-on Home (see below)
IndexGenAddOn.zip in your twiki installation directory. Content:
| File: || Description: |
| Add-on topic |
| Add-on topic repository |
| MochiKit library |
| Add-on script |
Related Topic: TWikiAddOns
- Set SHORTDESCRIPTION = Make a navigation bar for any web with easy drag and drop operations
- 30 Apr 2007