diff options
author | Joey Hess <joey@kitenet.net> | 2008-03-21 19:45:38 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2008-03-21 19:45:38 -0400 |
commit | 24599d285354928772abdef50ac71b59992e5ef8 (patch) | |
tree | 07e70854cedf933812412f09a6e33f440ef2e31e /doc | |
parent | 99bd29fc52ae439dd4fe91852cd21a1f950384a8 (diff) |
web commit by http://madduck.net/: put thoughts into the wishlist item
Diffstat (limited to 'doc')
-rw-r--r-- | doc/todo/beef_up_sidebar_to_allow_for_multiple_sidebars.mdwn | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/todo/beef_up_sidebar_to_allow_for_multiple_sidebars.mdwn b/doc/todo/beef_up_sidebar_to_allow_for_multiple_sidebars.mdwn index b92991ebb..8a4b852b7 100644 --- a/doc/todo/beef_up_sidebar_to_allow_for_multiple_sidebars.mdwn +++ b/doc/todo/beef_up_sidebar_to_allow_for_multiple_sidebars.mdwn @@ -1,8 +1,13 @@ 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. -Maybe a new `include` plugin would be better. +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. -Another thought 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... --[[madduck]] [[!tag wishlist]] |