Mike Britton wrote:
Now for the question: certain
elements like table background colors require specific style calls. For
example, td id="#styleName#" class="#styleName#" etc etc. Really basic
stuff that I can do in a framework like Fusebox by setting a variable in
the fuseaction. Presto, the page's style is called for background-color,
and it adjusts accordingly. However, in Farcry I approached it by making
a custom unique rule that I can configure via a container to output the
style name according to the page you're on (i.e.
> <con:container label="#stobj.objectID#_tableBGStyle">).

I'd argue that this is *not* a good approach. In your scenario I think you'd be better off using dmCSS objects in the tree to provide cascaded stylesheets for your pages.

This way you'd use a simple class name in your template and the properties for that class would be overridden in the cascaded stylesheets. There is a Breezo on how this works.. but alas is looks like MM have changed the URL of our Breeze account.. hold on.

Here you go:
http://daemoninternet.mmreseller.breezecentral.com/p99348887/

-- geoff
http://www.daemon.com.au/





---
You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to