consistency with edittemplate?
[ikiwiki.git] / doc / todo / Set_templates_for_whole_sections_of_the_site.mdwn
1 At the moment, IkiWiki allows you to set the template for individual pages using the [[plugins/pagetemplate]] directive/plugin, but not for whole sections of the wiki.
2
3 I've written a new plugin, sectiontemplate, available in the `page_tmpl` branch of my git repository that allows setting the template by pagespec in the config file.
4
5 -- [[Will]]
6
7 > This is an excellent idea and looks ready for merging.
8 > Before I do though, would it perhaps make sense to merge
9 > this in with the pagetemplate plugin? They do such a similar thing,
10 > and unless letting users control the template by editing a page is not
11 > wanted, I can't see any reason not to combine them. --[[Joey]]
12
13 > One other idea is moving the pagespec from setup file to a directive.
14 > The edittemplate plugin does that, and it might be nice
15 > to be consistent with that. To implement it, you'd have to
16 > make the scan hook store the template pagespecs in `%pagestate`,
17 > so a bit more complicated. --[[Joey]]