]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/todo/Allow_per-page_template_selection.mdwn
web commit by http://subvert.org.uk/~bma/: Fix a mistake in my example; I shouldn...
[ikiwiki.git] / doc / todo / Allow_per-page_template_selection.mdwn
index 1443ded0651407c1464c9ae534d0b9478ff4d77a..231ccf502338ceb60997f8f6e960d50c5cb1cbca 100644 (file)
@@ -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.
 
 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]]