[opencms-dev] HtmlWidget & css : custom?

Christian Steinert christian_steinert at web.de
Thu Jan 22 12:56:51 CET 2009


I don't think that you can show a different CSS file to the editor when 
different pages are edited.

If two pages have the same template then the html editor will use the 
same css file. You can create your css file as JSP and include many CSS 
files into it and then use that JSP as the CSS file of the editor. But 
you cannot use two different CSS files when editing two files that use 
the same opencms template

Best REgards
Christian
> Hi
>
> I want to use a custom and dynamicaly found css file in the HtmlWidget
> fields of XmlContent.
>
> I know I can write a css file and add it in XSD definition of my
> XmlContent, that's ok.
>
>  
>
> But a first issue occurs: it doesn't understand "@import url('another
> css file.css');" lines!!! And so I must copy all the css code of my css
> file used by final templates.
>
>  
>
> Second, I want the css used is found dynamically: I need to get it by a
> property (for example) of the xmlcontent currently edited. How can I do?
> I tried to write a jsp file insead of the css file, which could get it,
> but I can't get the currently edited uri!!! I only have the jsp file
> itself uri.
>
>  
>
> Could someone help me?
>
>
>   
> ------------------------------------------------------------------------
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20090122/c168a77b/attachment.html>


More information about the opencms-dev mailing list