From: Andrew H. <hu...@ll...> - 2003-08-05 20:45:25
|
>... >The 'making it use a different main template' is the slippery part because >non-main pages may want to use a different theme and leave the main >template the way it is. How about a syntax like: > > [% DEFAULT theme = OI.theme_fetch( mysite_theme_id, > use_main => 'yes' ) %] > >which would do the main template switcheroo behind the scenes but do what >it says for everyone else? 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. The next request that comes in that doesn't use that template would get the standard theme. 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... >(Even more sugar: instead of needing to remember an ID for >'mysite_theme_id' you can specify a name which is then looked up in the >'default_objects' server configuration section...) That would be good. For now then I'll just change the theme of the whole site to match for those particular pages, and create a special admin.html page that gives me all the admin links I need. Thanks. -Andrew >Chris > >-- >Chris Winters (ch...@cw...) >Building enterprise-capable snack solutions since 1988. > > > >------------------------------------------------------- >This SF.Net email sponsored by: Free pre-built ASP.NET sites including >Data Reports, E-commerce, Portals, and Forums are available now. >Download today and enter to win an XBOX or Visual Studio .NET. >http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 >_______________________________________________ >openinteract-dev mailing list >ope...@li... >https://lists.sourceforge.net/lists/listinfo/openinteract-dev |