Yes, it is possible to have one java class handle multiple templates. You
say that
> live with that. I just think it would be easier
> for the designers to build up the site and have
> access to a lot of the base information that would
> be present in the Java class for a particular
> section. Whereas a Default.class wouldn't really
> do the trick.
>
Why are you unwilling to call the class Default? If you set up the template
directories so that different sections are in different directories it is no
problem and this is the natural way to distinguish files as belonging to a
specific section
templatesRoot/chemistry/organic.wm
templatesRoot/chemistry/inorganic.wm
templatesRoot/physics/optics.wm
templatesRoot/physics/mechanics.wm
Then you have a Default.class in a package corresponding to each section:
edu.univ.modules.screens.chemistry.Default
edu.univ.modules.screens.physics.Default
Then any template in the chemistry folder will be handled by
chemistry.Default. If any template in chemistry is so different it warrants
its own class, you can override Default by naming a class the same as the
template (except the first letter is always capitalized.)
> > TIA,
> >
> > jvz.
> >
>
> I have a Default.java working now, is there a way
> that you could specify a particular mapping? I'm
> working with 4 designers and another programmer.
> We have 10 primary sections to the site we're trying
> to build so is it possible to map, say, all the
> templates for a particular section to a single class?
>
> Maybe build a mapping with an XML file possibly, or
> if you prefixed the WM template with the section name:
>
> ChemistryOrganic.wm --> Chemistry.java
> ChemistryInorganic.wm --> Chemistry.java
>
> PhysicsOptics.wm --> Physics.java
> PhysicsMechanics.wm --> Physics.java
>
> There's just a lot of overlap in the information,
> so I'd just like to build up the context in a
> single place. There would obviously info that's
> mutually exclusive between templates but I can
> The designers could just play around with a bunch
> of different templates with the same prefix and
> still have access to the info with me having
> to make class for an indivdual template.
>
> Does anyone else thinks this makes sense?
>
> jvz.
>
>
> --
>
> Jason van Zyl
> [EMAIL PROTECTED]
>
>
>
> ------------------------------------------------------------
> 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]