[Dojo-interest] Change CSS class Attributes Dynamically

Milind milind.nighojkar at gmail.com
Thu Aug 25 04:57:30 EDT 2011


Yes elfwyn,

I think your first reply was feasbile and better approch, We can take the
inputs from them create template for secondary classes and initialize the
attribute. When the content is displayed we apply those classes as secondary
classes to the main class.

I will try this how it works for given situation.

Regards,
Milind N

On Thu, Aug 25, 2011 at 1:43 PM, elfwyn [via Dojo Toolkit] <
ml-node+3283305-1265604926-423992 at n3.nabble.com> wrote:

> I don't know if I understood the whole problem here.
>
> Your users are styling your web application through a CMS.
> If you are using a CMS like Typo3 or Yoomla for example CSS Styles are not
> created or modified
> dynamically at runtime with Javascript/Dojo.
>
> CSS Style files can be altered directly by CMS users. Alternatively you
> could extend the CMS to allow editing of specific CSS attributes. This might
> require some customization of your CMS however.
>
> So all that comes to my mind is some kind of CMS Text editor to style a
> page in realtime with javascript wich is later saved into the CMS with it's
> corresponding styles.
>
> The most structured way would be for the user to create style classes and
> apply them to nodes.
> You could hide the complexity by allowing only certain style attributes to
> change, like background and font color on the root of the page and so on.
>
> After creating and appyling those css classes they would need to be saved
> in the CMS and incorporated into the output. For example by dynamically
> creating style tags in your CMS Template from your Database.
> With the appropriate backend implementation you could also create css files
> dynamically and include them in the appropriate pages.
>
> Editing dojo styles directly (change existing css files) is rather complex
> even for me and I wouldn't recommend CMS authors to edit them or add to them
> directly.
>
> Since I don't see the whole picture yet I can't give a more precise answer.
>
>
> Yours
>
> Elfwyn
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://dojo-toolkit.33424.n3.nabble.com/Change-CSS-class-Attributes-Dynamically-tp3280144p3283305.html
>   To unsubscribe from Change CSS class Attributes Dynamically, click here<http://dojo-toolkit.33424.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3280144&code=bWlsaW5kLm5pZ2hvamthckBnbWFpbC5jb218MzI4MDE0NHwtMTUxMzc4MTc1NQ==>.
>
>


--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Change-CSS-class-Attributes-Dynamically-tp3280144p3283379.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.dojotoolkit.org/pipermail/dojo-interest/attachments/20110825/a7142236/attachment.htm 


More information about the Dojo-interest mailing list