AW: [opencms-dev] How to use multiple contents with jsp templates?
Soeren Wollesen
SW at Solve-IT.de
Wed Feb 4 18:10:02 CET 2004
Thank you Claus,
I didn't know that i have to alter the USE_BODYSELECTOR var. And that was it, afterwards everything went fine.
Is there a doc, where such things are documented?
Thanks again for the quick help, Soeren Wollesen
-----Ursprüngliche Nachricht-----
Von: Claus Priisholm [mailto:cpr at codedroids.com]
Gesendet: Mittwoch, 4. Februar 2004 16:57
An: opencms-dev at opencms.org
Betreff: Re: [opencms-dev] How to use multiple contents with jsp templates?
It is unclear from your mail whether or not you have enabled the feature in the first place:
in "/system/workplace/templates/edit_options" (the file is probably on page 2 of the list of templates) set
var USE_BODYSELECTOR = true;
This step makes the selector appear in the editor. Next you need to provide the appropriate default body (which you select when you create a page). Look in "/system/modules/org.opencms.default/default_bodies/"
for examples - i.e. something like
<?xml version="1.0" encoding="ISO-8859-1"?> <XMLTEMPLATE>
<TEMPLATE><![CDATA[ ]]></TEMPLATE>
<edittemplate><![CDATA[ ]]></edittemplate>
<template name="foobar"><![CDATA[ ]]></template>
<edittemplate name="foobar"><![CDATA[ ]]></edittemplate> </XMLTEMPLATE>
Finally in you jsptemplate reference these two bodies like:
...
<cms:include element="body" />
...
<cms:include element="foobar" />
...
More information about the opencms-dev
mailing list