2008-07-21 13:31:57 +02:00
|
|
|
[[!template id=plugin name=map author="Alessandro Dotti Contra"]]
|
|
|
|
[[!tag type/meta]]
|
2006-08-23 07:41:07 +02:00
|
|
|
|
2006-08-18 18:18:45 +02:00
|
|
|
This plugin generates a hierarchical page map for the wiki. Example usage:
|
|
|
|
|
2008-07-21 09:19:35 +02:00
|
|
|
\[[!map pages="* and !blog/* and !*/Discussion"]]
|
2006-08-18 18:18:45 +02:00
|
|
|
|
|
|
|
If the pages to include are not specified, all pages (and other files) in
|
2006-08-18 18:45:28 +02:00
|
|
|
the wiki are mapped.
|
|
|
|
|
2008-07-19 19:16:40 +02:00
|
|
|
By default, the names of pages are shown in the map. The `show` parameter
|
2008-06-16 01:08:50 +02:00
|
|
|
can be used to show the titles or descriptions of pages instead (as set by
|
|
|
|
the [[meta]] plugin). For example:
|
|
|
|
|
2008-07-21 09:19:35 +02:00
|
|
|
\[[!map pages="* and !blog/* and !*/Discussion" show=title]]
|
2008-06-15 22:11:11 +02:00
|
|
|
|
2007-10-06 22:24:36 +02:00
|
|
|
Hint: To limit the map to displaying pages less than a certain level deep,
|
2007-12-08 21:59:08 +01:00
|
|
|
use a [[ikiwiki/PageSpec]] like this: `pages="* and !*/*/*"`
|
2006-08-18 18:18:45 +02:00
|
|
|
|
2008-07-21 13:31:57 +02:00
|
|
|
[[!if test="enabled(map)" then="""
|
2007-02-12 03:44:47 +01:00
|
|
|
Here's an example map, for the plugins section of this wiki:
|
2006-08-18 18:18:45 +02:00
|
|
|
|
2008-07-21 09:19:35 +02:00
|
|
|
[[!map pages="(plugins or plugins/*) and !*/*/*"]]
|
2007-02-12 03:44:47 +01:00
|
|
|
"""]]
|