X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/blobdiff_plain/94a80b14891a735c56cff9e80642adb5f8a4ba72..54f352bb74d3531b1c7ec4d8c7c5c1d5d1eabc65:/doc/todo/Allow_per-page_template_selection.mdwn diff --git a/doc/todo/Allow_per-page_template_selection.mdwn b/doc/todo/Allow_per-page_template_selection.mdwn index 1443ded06..231ccf502 100644 --- a/doc/todo/Allow_per-page_template_selection.mdwn +++ b/doc/todo/Allow_per-page_template_selection.mdwn @@ -27,3 +27,17 @@ pursue implementing this feature further myself. But I'd still happily switch to using this feature if someone were to implement it. + +UPDATE: My latest hack is as follows: + + if ($page eq 'index') { + $template->param(toplevelindex => 1); + } + +And that's something that I'm not actually embarrassed to suggest +could be accepted upstream. Joey, what do you think? And would a +proper patch be helpful (it really just adds those lines to the right +place). + +> Fully implemented as a templatefile hook and a [[plugins/pagetemplate]] +> plugin. --[[Joey]] [[done]]