[opencms-dev] Stylesheet !!! URGENT !

Apostoly Guillaume ApostolyG at mail.europcar.com
Mon Jul 21 15:33:01 CEST 2003


in your template, you must have something like that : 

<?xml version="1.0" encoding="ISO-8859-1"?>

<!-- This links the XMLTemplate mechanism with the JSP templates.
     So far it is required because the WYSIWYG editor still is
     completly based on the XMLTemplates. -->
<xmltemplate>

<!-- Define the stylesheet for the WYSIWYG editor -->
<stylesheet>/system/modules/com.europcar.intranet/resources/mystyle.css</sty
lesheet>

<!-- Template description, pretty short for a JSP template -->
<template>
    <element name="jsptemplate"/>
</template>

<!-- This describes the "jsptemplate" element used above.
     Important: The element must NOT be called "frametemplate",
     because in that case the stylesheet does not work. -->
<elementdef name="jsptemplate">
    <!-- Always use this class tag when inserting a JSP element in your
page: -->
    <class>com.opencms.flex.CmsJspTemplate</class>   
    <!-- Just add the path to your JSP here: -->
    <template>../jsptemplates/EuropcarTemplate.jsp</template>
</elementdef>
    
</xmltemplate>

Hope this helps.

Regards,

Guillaume.

> -----Message d'origine-----
> De: Thomas Corte [mailto:Thomas.Corte at knipp.de]
> Date: lundi 21 juillet 2003 15:10
> À: opencms-dev at opencms.org
> Objet: Re: [opencms-dev] Stylesheet !!! URGENT !
> 
> 
> Hi,
> 
> Roberto Ghizzioli wrote:
> 
> > about css..... there's same problem
> > if I define a style 
> > 
> > .mystyle {
> > ....
> > }
> > in my css file, and I include in my jsptemplate.... 
> > 
> > but.... how link mystyle to a text in my Wysiwyg editor ????
> 
> I have s similar problem here - I defined some CSS styles 
> that should be 
> applied to certain (not all) table rows (like <tr 
> class="myclass" ...>).
> However, there seems to be no way to do so in the WYSIWYG editor -
> I only managed to do that by editing the source directly or 
> by copying 
> an existing table row that already got the style.
> 
> Am I missing something here? If should be no way to attach styles to 
> certain HTML elements, doesn't this render the WYSIWYG editor 
> virtually 
> useless for non-technical personnel?
> 
> Regards,
> 
> -- 
> ___________________________________________________________________
>     |       |
>     | knipp |                  Knipp  Medien und Kommunikation GmbH
>      -------                          Technologiepark
>                                       Martin-Schmeisser-Weg 9
>                                       D-44227 Dortmund
>     Dipl.-Inform. Thomas Corte        Fon: +49-231-9703-0
>     Thomas.Corte at knipp.de             Fax: +49-231-9703-200
> 
> _______________________________________________
> 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