diff options
author | http://zwol.livejournal.com/ <http://zwol.livejournal.com/@web> | 2009-05-15 12:47:47 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2009-05-15 12:47:47 -0400 |
commit | f9244f06b672d7502d511ef5278a092352f54c40 (patch) | |
tree | 1e84929cdd88f1ddd92296ae4626a1b807b410c5 | |
parent | 3557955adae0957ec0023c0fce000e94030045a9 (diff) |
-rw-r--r-- | doc/ikiwiki/directive/map/discussion.mdwn | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/doc/ikiwiki/directive/map/discussion.mdwn b/doc/ikiwiki/directive/map/discussion.mdwn index 808930fa4..e82b3f71b 100644 --- a/doc/ikiwiki/directive/map/discussion.mdwn +++ b/doc/ikiwiki/directive/map/discussion.mdwn @@ -11,3 +11,32 @@ Question: Is there a way to generate a listing that shows *both* title and descr Is that possible? --Peter + +---- + +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: + + * all of the topics; + * all of the first-level subpages of the *current topic only*. + +That is, if the current page is "Topic A" or "Topic A/Page 1", then the map should look like + + Topic A + Page 1 + Page 2 + Page 3 + Topic B + Topic C + +but if the current page is "Topic B" or one of its subpages, then the map should look like + + Topic A + Topic B + Page 1 + Page 2 + Page 3 + Topic C + +Is there any way to do that? I don't mind mucking around with `[[!meta]]` on every page if that's what it takes. + +-- Zack |