From: Chris W. <ch...@cw...> - 2003-08-05 20:51:38
|
Andrew Hurst wrote: >> [% DEFAULT theme = OI.theme_fetch( mysite_theme_id, >> use_main => 'yes' ) %] > > So, just to be clear, with that directive above, everything returned to > the user will be generated within the constraints of the theme > mysite_theme_id (i.e. use its main_template). Whereas if use_main > wasn't set or was set to 'no' then only those templates called from that > template would get the theme mysite_theme_id. I was thinking it would be *everything* in this template along. Other components (like boxes, the main template itself, etc.) would use the normal theme. But we can add another flag ('set_global' or something) to change the theme for the whole request as well. OR maybe just a single flag ('set_for_request' or something) to tell OI to use this theme for the rest of *this* request, which includes the main template. > The next request that comes in that doesn't use that template would get > the standard theme. Right. > My only nitpick would be that it should be set_main, instead of > use_main. Makes a little more sense imho, as you're not using the main > template, but you're setting the main template for that processing. > Maybe even set_main_this_request though thats a little unwieldy ;) > set_main is fine... That makes sense. Later, Chris -- Chris Winters (ch...@cw...) Building enterprise-capable snack solutions since 1988. |