ikiwiki/doc/todo/beef_up_sidebar_to_allow_fo...

14 lines
836 B
Plaintext
Raw Normal View History

2008-03-18 12:06:39 +01:00
Maybe sidebar could be beefed up to take the name of a sidebar, such that I could use multiple sidebars in the same wiki. For instance, the default name would be 'sidebar', meaning the plugin looks for `sidebar.pm` and fills in the `sidebar` slot, but I might also want a footer in `footer.pm`, filling the template's `footer` slot.
One good way (if possible) would be to provide a directive like `\[[!sidebar
id=sidebar]]` which would cause the file, in which it occurred to fill the
slot `SIDEBAR` in the template: basically, a page `foo.mdwn` says
`\[[!fillslot slot=myslot]]` and then its contents should go into `<TMPL_VAR
SLOT_MYSLOT>` for all pages. Ideally, this can then be overridden, so if
`/bar/foo.mdwn` also references `myslot` then pages under `/bar` should get
those contents instead.
2008-03-18 12:06:39 +01:00
2008-03-21 21:21:18 +01:00
2008-03-18 12:06:39 +01:00
--[[madduck]]
2008-03-18 12:16:32 +01:00
[[!tag wishlist]]