[opencms-dev] CSS classes in Editor

Martijn Schiferli martijn at schiferli.com
Thu Oct 9 00:22:02 CEST 2003


Hi All,

Thank you for your suggestion's. The solution we have come up with is to
create style elements in the HTML Gallery so they can insert these into
there page. The way that works is they get a Title element from the
gallery insert it into there page and only have to change the text
etc...

Regards,

Martijn Schiferli

-----Original Message-----
From: opencms-dev-admin at opencms.org
[mailto:opencms-dev-admin at opencms.org] On Behalf Of Bryan LaPlante
Sent: Thursday, 9 October 2003 12:47 AM
To: opencms-dev at opencms.org
Subject: Re: [opencms-dev] CSS classes in Editor


Here is one possible solution.
1.    create a template page for your users style sheet as .jsp
2.    In the style sheet set defaults for each class name
String bgcolor= element.getProperty("bgcolor") != null?
element.getProperty("bgcolor") : "white";

3. then apply the style to the stylesheet.

BODY{
    background-color: <%= bgcolor %>
}

4.    Use the properties of the page created by the user and show them
how
to edit the values for there stylesheet by changing the values in the
property editor instead of the source editor.

----- Original Message -----
From: "Martijn Schiferli" <martijn at schiferli.com>
To: <opencms-dev at opencms.org>
Sent: Wednesday, October 08, 2003 12:16 AM
Subject: [opencms-dev] CSS classes in Editor


> Does any one have experience in adding css styles from the template 
> into the editor style dropdown menu (normal etc...)?
>
> I am working on a site in opencms for a client where the designer used

> a lot of style sheets. For this site I am looking for a way to give 
> the user the possibility to apply them without having to go to the 
> source code editor.
>
> Regards,
>
> Martijn Schiferli
>
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please 
> visit http://mail.opencms.org/mailman/listinfo/opencms-dev
>

_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please
visit http://mail.opencms.org/mailman/listinfo/opencms-dev






More information about the opencms-dev mailing list