Hi Mike
I know it's probably not an option for you at this stage in your project,
but the way we achieve different L&F for templates is to have only one
template that specifies the CONTENT of the screen with an XML syntax (e.g.
GRIDs, REPORTs, FORMs, etc.), and then have different XSL stylesheets to
transform the XML to different HTML's. You could also use Anakia instead of
XSL of course.
I know you're probably too far along for such a drastic change, but it
really does achieve separation of CONTENT from LAYOUT/FORMATTING.
Cheers,
Frank
----- Original Message -----
From: "Mike Haberman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 07, 2001 6:56 PM
Subject: Per request template changing; need opinions, help
> hey!
>
> I would like to set up the new jyve system such that each
> project (e.g. to lists, faqs, receipe collections, etc) can
> have it's own L&F.
>
> I've come up with 2 solutions:
> 1. give each project it's own template hierarchy. So for exaple,
> the faq templates would be under templates/faq/{nav,layouts, screens}
> and the todo list might be under templates/todo/{nav, layouts,
screens}
>
> So, I need to change the following two properties on every request
> depending what project is being accessed:
> services.TurbineTemplateService.template.path
> services.TurbineVelocityService.templates
>
> the default would be
> services.TurbineTemplateService.template.path=/templates/gjyve
> services.TurbineVelocityService.templates=/templates/gjyve
>
> To implement this I will need a way to change the vTemplates
> property in TurbineVelocityService and templateRoot in
> the TurbineTemplateService.
>
> Assuming I add the methods to do the above, At what point can
> can I set the properites before any processing is done? That is
> where do I place the code to do the switching such that it gets
> called first on each request?
>
>
> 2. An easier but less flexible way would be to have a single template
> hierarchy but allow only the main screen Template to change. So you
> are stuck with one layout for all your projects.
>
>
> Any other ideas or suggestions?
>
>
> thanks
>
> mike
>
>
> -------------------------------------------------
> I am Vinz, Vinz Clortho. Keymaster of Gozer,
> Volguus Zildrohar, Lord of the Sebouillia.
> Are you the Gatekeeper?
> -------------------------------------------------
>
>
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?: [EMAIL PROTECTED]
>
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]