|
From: Chris W. <ch...@cw...> - 2002-09-25 03:00:28
|
On Tue, 2002-09-24 at 19:54, Arva, Adrian wrote:
> I have a handler that I would also like to use a different master template
> than base_main.
> Is it this possible to dynamically change it?
You bet. It's somewhat esoteric, but you can set:
# if the main template is in a package
$R->{page}->{_template_name_} = 'pkg::template';
# if thie main template is not in a package (like 'base_main')
$R->{page}->{_template_name_} = 'template';
If this is not set, OI checks $R->{page}->{_simple_} -- if that is set,
it uses the value of the theme key 'simple_template', otherwise (most of
the time) it uses the theme key 'main_template'.
Chris
--
Chris Winters (ch...@cw...)
Building enterprise-capable snack solutions since 1988.
|