blob: 9de66f7877341e484203e2e0bd54b96eca2ddab5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
[[!template id=plugin name=navbar author="[[TobiOetiker]]"]]
The Navbar Plugin renders a Navigation Bar into your page. It is based on code
from the [[sidebar_plugin|plugins/sidebar]].
The plugin looks for a page called "navbar"
This page must contain a itemized list of the form
* \[[Welcome|index]]
* \[[Management|mgmt]]
* \[[Leadership|mgmt/lead]]
* \[[Kidnapping|mgmt/kidnapping]]
* \[[Information_Technology|it]]
* \[[Windows|it/windows]]
* \[[Mobile_Communication|it/mobile]]
This list will be turned into a folding menu structure
Include this into your templates.
<TMPL_IF NAVBAR>
<div id="navbar">
<TMPL_VAR NAVBAR>
</div>
</TMPL_IF>
To make a nice menu, some css magic is required, but since this is required to make
ikiwiki look good anyway, I won't go into details here ...
See the navbar in action on <http://insights.oetiker.ch>
Tobi Oetiker 2006.12.30
If you are interested in this, drop me a line tobi at oetiker dot ch
In the meanwhile, I ([[MartinQuinson]]) have hacked this a bit to make it fit my needs. The result is [[here|http://www.loria.fr/~quinson/Hacking/ikiwiki/]]
In the meanwhile I too have hacked this for my needs and fixed a few bugs in Martin's version.
The result (and source / instructions) can be found [[here|http://wiki.math.cmu.edu/iki/wiki/tips/20140720-ikiwiki-navbar.html]]. (It is not mobile ready yet, but might be soon...)
|