It sounds like an overly-complicated way to accomplish your goal.  Why isn't
the user just choosing the position by choosing the appropriate class in an
editor that enables you to do this, like ActivEdit?

Respectfully,

Adam Phillip Churvis
Member of Team Macromedia
http://www.ProductivityEnhancement.com

Download Plum and other cool development tools,
and get advanced intensive Master-level training:

* C# & ASP.NET for ColdFusion Developers
* ColdFusion MX Master Class
* Advanced Development with CFMX and SQL Server 2000

----- Original Message ----- 
From: "Dan" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, May 06, 2005 2:43 PM
Subject: [plum] dynamic variables in Plum stylesheets


I guess this is a question "how to" to Adam and David, as well as being put
out to the Plum Community for thoughts and ideas on.



Historically in my work for the Content Management System "backend" for a
website I have given the user the ability (for example) when choosing an
image for a content page, to choose its placement as left, right, middle.
This is a value that is written to the pageContent_db table. THEN my
stylesheets have been named "whateverStyle.cfm" and the variable
#pImgAlign"# is used in the class definition.  Thus the stylesheet takes on
a dynamic quality changing what it dishes up by letting the user set values.



What I see with Plum is that "Plum stylesheet names  always end in
styles.css"



My first thought to accommodate my desire to enable my users to make simple
compositional changes to their content pages is to write the class def as an
inline declaration in the display code and either leave out (or cascadingly
overwrite) the baseStylesheet.css. But this has a cludgy nature and
definitely violates the principle of "one for all"



Anyone have any thoughts on this? I may (as usual) be missing the obvious,
but I don't think so. I need to define a  CSS class in the stylyesheet and I
would like to have database driven variables in the stylesheet to give my
users this control.





Yours truly,







Dan Kaufman







An Elephant Never Forgets

[EMAIL PROTECTED]





**********************************************************************
You can subscribe to and unsubscribe from lists, and you can change
your subscriptions between normal and digest modes here:

http://www.productivityenhancement.com/support/DiscussionListsForm.cfm
**********************************************************************

Reply via email to