]> sipb.mit.edu Git - ikiwiki.git/blob - doc/plugins/map.mdwn
Add a postscan hook.
[ikiwiki.git] / doc / plugins / map.mdwn
1 [[template id=plugin name=map author="Alessandro Dotti Contra"]]
2 [[tag type/meta]]
3
4 [[meta description="some page description"]]
5
6 This plugin generates a hierarchical page map for the wiki. Example usage:
7
8         \[[map pages="* and !blog/* and !*/Discussion"]]
9
10 If the pages to include are not specified, all pages (and other files) in
11 the wiki are mapped.
12
13 By default, the names of pages are shown in the map. The `show` parameter
14 can be used to show the titles or descriptions of pages instead (as set by
15 the [[meta]] plugin). For example:
16
17         \[[map pages="* and !blog/* and !*/Discussion" show=title]]
18
19 Hint: To limit the map to displaying pages less than a certain level deep,
20 use a [[ikiwiki/PageSpec]] like this: `pages="* and !*/*/*"`
21
22 [[if test="enabled(map)" then="""
23 Here's an example map, for the plugins section of this wiki:
24
25 [[map pages="(plugins or plugins/*) and !*/*/*"]]
26 """]]