Forum OpenACS Development: Re: Some ideas about package structure ... comments?

Collapse
Posted by Bart Teeuwisse on
Don,

I'm all for it. I'm already using the /templates directory in my packages.

How about moving the master template from the global /www directory to a global /templates directory. For sites that I have customized I usually end up with several other global templates.

We could do the same for cascading style sheets. Place those in /www/resources (either package specific or global).

/Bart

Collapse
Posted by Sean Redmond on

We could do the same for cascading style sheets. Place those in /www/resources (either package specific or global).

I think this is the first half of what needs to be done for really useful CSS on a package by package basis -- which is the essence of "cascading". The second half (since the <link> elements have to go in the <head>, which is probably handled by a global template) is providing a mechanism to pass stylesheet references as properties up to more general templates or have global templates look up package stylesheets (by package id?). The former is probably be more useful since it would allow more freedom to specify particular stylesheets when necessary.