On Mon, Mar 3, 2008 at 5:29 AM, Jorge Godoy <[EMAIL PROTECTED]> wrote:
>
>  Em Monday 03 March 2008 08:19:47 Diez B. Roggisch escreveu:
>
> > On Monday 03 March 2008 12:15:45 Navrang wrote:
>  > > I have experience with TG application.
>  > > But i dont know how to replace static contents specific to custom
>  > > theme.
>  > > and how to replace custom templates.
>  >
>  > You can use the tg_template-parameter returned in a controller to control
>  > which alternative template to use. And static content is replaced by
>  > controller-methods, returning the static data modified.
>
>  This would be better to change the whole appearance of the application.  If 
> he
>  designed using CSS to change the "theme", then I believe that special code on
>  master.kid to either filter through a set of specific "themes" or to
>  dinamically choose a "theme", plus a cookie would be better than having to
>  specify the template in all expose()d methods...
>
>  At least this seemed a lot easier and allowed me to deviate less from the
>  standard coding used with TG, allowing me to reuse code modules easily.
>

Isn't in easier to rename static folder to static-tempalte1 and create
another folder called static-template2. Create both themes and just
use the setting in the app.dev to point to which ever static folder
you want?

How is that different then what you are doing?
Lucas

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to