Chris McDaniel wrote:
> I'm probably missing something obvious here, but I'm wondering about how to
> make OI use a different template for basic pages pulled from the filesystem
> than for pages generated from templates on a systemwide level.
There's nothing basic you can do so you didn't miss anything. But 
you might try the following:
  - Each page has a 'main_template' property you can set for a 
particular template. To have them all use it by default, I'd do a 
SQL update (update page set main_template = 'foo').
  - Issue an ALTER TABLE on page so that every new record has 'foo' 
for a default of main_template
  - Add 'main_template' to 'skip_undef' in the SPOPS configuration. 
This will tell SPOPS not to include 'main_template' in the insert if 
nothing is defined for it, and the default will be filled in properly.
Rather than editing the SPOPS configuration directly, you can do the 
latter in $WEBSITE_DIR/conf/override_spops.ini as:
[page.skip_undef]
action = add
value  = main_template
Then when you install a new version of base_page (a new one is 
coming in 1.55) your configuration won't be overwritten.
Chris
-- 
Chris Winters (ch...@cw...)
Building enterprise-capable snack solutions since 1988.
  |