X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/94a80b14891a735c56cff9e80642adb5f8a4ba72..4e7b7a178890eb8d28edcd2e6ab2763c9a3988e5:/doc/todo/Allow_per-page_template_selection.mdwn?ds=sidebyside 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]]