[opencms-dev] Templates for the body part?
Apostoly Guillaume
ApostolyG at mail.europcar.com
Wed Jun 25 19:10:01 CEST 2003
Hi,
The file you're putting must be exactly as one coming from
"/system/body/....."
Just copy and paste something from that directory, and it will work.
You can look at the source code, it is XML with only parts of CDATA stuffs
inside.
Hope this helps.
Guillaume.
> -----Message d'origine-----
> De: Joachim Arrasz [mailto:info at arrasz.de]
> Date: mercredi 25 juin 2003 18:50
> À: opencms-dev at opencms.org
> Objet: RE: [opencms-dev] Templates for the body part?
>
>
> Hy all,
>
> well i thought my problem was solved.... sorry not right.
> Just one step
> further :-)When i try to create a new Page i can choose
> between my body templates,
> but then after i try to finish the cration process an error occurs
>
> com.opencms.core.CmsException: 21 XML parsing error. Detailed
> error: Error
> while creating new Pagecom.opencms.core.CmsException:
> com.opencms.workplace.CmsNewResourcePage Error parsing
> default body file
> '/system/modules/com.synyx.opencms/default_bodies/default_body
> '.root cause was com.opencms.core.CmsException: 21 XML parsing error.
> Detailed error: com.opencms.workplace.CmsNewResourcePage Error parsing
> default body file
> '/system/modules/com.synyx.opencms/default_bodies/default_body
> '.root cause was org.xml.sax.SAXParseException: The markup in
> the document
> preceding the root element must be well-formed. at
>
> com.opencms.workplace.CmsNewResourcePage.getContent(CmsNewReso
> urcePage.java:237) at
>
> com.opencms.template.cache.CmsElementXml.getContent(CmsElement
> Xml.java:171) at
> com.opencms.template.cache.CmsUri.callCanonicalRoot(CmsUri.java:185)
> at com.opencms.template.cache.CmsElementCache.callCanonicalRoot
>
> </snip>
>
> my template is absolutely simple:
> <![CDATA[
> <table bgcolor='black'>
> <tr><td></td></tr>
> <tr><td></td></tr>
> </table>
> ]]>
>
> i can`t excplain what there isn`t well-formed
>
> The default_body Template`s type iss plain...
>
> thanx in advance
>
> --
> /**
> * @author Joachim Arrasz
> * @mail arrasz at synyx.de
> * @url http://www.synyx.de
> */
>
> > Apostoly Guillaume>
> > Hi Joachim,
> >
> > Here's the (or my) solution :
> >
> > You write with the editor a template body you want to use,
> into one of
> > your folder. After this, you copy your body to
> > "system/modules/yourmodulename/default_bodies", and that's it !
> > the special name "default_bodies" does all the trick.
> > the document inside must be of the form :
> >
> > <![CDATA[
> > insert your template body here
> > ]]>
> >
> > Hope this helps, regards,
> >
> > Guillaume APOSTOLY.
> >
> >> -----Message d'origine-----
> >> De: Joachim Arrasz [mailto:info at arrasz.de]
> >> Date: mercredi 25 juin 2003 14:04
> >> À: opencms-dev at opencms.org
> >> Objet: [opencms-dev] Templates for the body part?
> >>
> >>
> >> Hello List,
> >>
> >> is it possible to create templates just for use in the body
> >> part. When i
> >> create a new page, there is a dropdown field called "empty
> body" Am i
> >> rightwhen i guess that this is the correct point to do that?
> >> Actually i`ve
> >> never written content, just technical modules. So is there any
> >> documentation for templating body content?
> >> Thanx in advance
> >>
> >> Achim
> >>
> >> --
> >> /**
> >> * @author Joachim Arrasz
> >> * @mail arrasz at synyx.de
> >> * @url http://www.synyx.de
> >> */
> >>
> >>
> >>
> >> _______________________________________________
> >> 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