aboutsummaryrefslogtreecommitdiff
path: root/doc/todo/Set_templates_for_whole_sections_of_the_site.mdwn
blob: b9c3973582a2ecf426b8b2cb131332ba0f294a2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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.

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.

-- [[Will]]

> This is an excellent idea and looks ready for merging.
> Before I do though, would it perhaps make sense to merge
> this in with the pagetemplate plugin? They do such a similar thing,
> and unless letting users control the template by editing a page is not
> wanted, I can't see any reason not to combine them. --[[Joey]]

> One other idea is moving the pagespec from setup file to a directive.
> The edittemplate plugin does that, and it might be nice
> to be consistent with that. To implement it, you'd have to
> make the scan hook store the template pagespecs in `%pagestate`,
> so a bit more complicated. --[[Joey]]