From: Andrew H. <hu...@ll...> - 2003-08-05 18:44:24
|
TT version 2.10. In other news, how could I go about changing the theme from within a template? I want to have most of the pages generated by /Document and /DocumentPages to use a different main template. It has to fit in with another sites' design. So what I thought I would do is create a new theme, and set a different main_template. Then, in each template that I wanted to show with the new site design, I would set the template with the OI object. For example:: ## in the document::document_detail template, this should show with the new theme [% OI.box_add( 'document_tools_box', document = document ); OI.box_add( 'object_modify_box', object = document ); DEFAULT theme = OI.theme( mysite_theme ); # <-- specify the theme for the returned page here, # hopefully making it use a different main template as well PROCESS error_message; PROCESS status_message; -%] Is this possible? Am I going about it the wrong way? I read the message a while back where the user wanted pages pulled from the filesystem to be in a different main template than pages from the database. I don't think this is exactly the same, and thus didn't try those solutions. Is there another way to do what I want to do? Thanks a ton, -Andrew At 02:31 PM 8/5/2003 -0400, Chris Winters wrote: >Andrew Hurst wrote: >>This might be a bug, not sure though. When I try to create a new >>template, the Template data is already filled in for me. With what? A >>directory listing of / ! This only happens on this new server I >>installed it on, with every browser I've tested (mozilla on win, safari >>on osx). The data from the textarea is at the bottom of the message. > >Whoa! Very strange. What version of TT are you using? > >I'll try and replicate it this evening -- I need to upgrade my server to >the new Apache/mod_perl so it'll be a good testbed... > >Later, > >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 |