1 It'd be nice to be able to specify an altenate template file to be
2 used for some pages. For example, I'd like most of my pages to use
3 page.tmpl but I want my front page to be formatted in some unique way,
4 so I'd like it to use a separate front.tmp template instead.
6 I'm not sure what syntax to use for this, (\[[template]] seems to be
7 taken for another purpose already). Perhaps something like
8 \[[page-template front]] ?).
10 Joey provided a nice suggestion for implementing this feature, ("I
11 would probably add a hook that allowed overriding the default template
12 constuction and returning a template object"). I did start looking
13 into that, but finally I wimped out and just put the following hack
14 into the `genpage()` function in Render.pm:
17 if ($page eq 'index') {
18 $template->param(suppresstitle => 1);
21 That lets me use a `<TMPL_UNLESS SUPPRESSTITLE>` in my template to get
22 the effect I want. I don't think that's anything that upstream should
23 pick-up as is, (maybe with an appropriate configuration option, but
24 then again allowing for per-page template selection would be more
25 powerful anyway). But I'm happy enough now that I probably won't
26 pursue implementing this feature further myself.
28 But I'd still happily switch to using this feature if someone were to