]> sipb.mit.edu Git - ikiwiki.git/blob - doc/ikiwiki/directive/map/discussion.mdwn
e82b3f71b74ea0507d06388e723a3438a8bec92f
[ikiwiki.git] / doc / ikiwiki / directive / map / discussion.mdwn
1 Question: Is there a way to generate a listing that shows *both* title and description meta information? Currently, a \[\[!map ...]] shows only one of the two, but I'd like to generate a navigation that looks like a description list. For example:
2
3  * This is the title meta information.
4
5    This is the description meta information
6
7  * This is another title.  
8
9    And so on ...
10
11 Is that possible?
12
13 --Peter
14
15 ----
16
17 The site I'm trying to set up right now (not really a wiki - no public editing) is divided into topics.  Topics are pages that have `\[[!meta link="/topic"]]`.  Topic pages contain an index of their subpages (done with `\[[!inline]]`); the subpages are the real content.  I want a map in the sidebar that lists:
18
19  * all of the topics;
20  * all of the first-level subpages of the *current topic only*.
21
22 That is, if the current page is "Topic A" or "Topic A/Page 1", then the map should look like
23
24     Topic A
25         Page 1
26         Page 2
27         Page 3
28     Topic B
29     Topic C
30
31 but if the current page is "Topic B" or one of its subpages, then the map should look like
32
33     Topic A
34     Topic B
35         Page 1
36         Page 2
37         Page 3
38     Topic C
39
40 Is there any way to do that?  I don't mind mucking around with `[[!meta]]` on every page if that's what it takes.
41
42 -- Zack