[opencms-dev] Defining & Customizing Editable Bodies
Jonathan Woods
jonathan.woods at scintillance.com
Fri Sep 29 20:24:29 CEST 2006
Perhaps it's a case of making sure, when you create freeform content, that
you create the resource from an xmlpage resource which has only a <body>
element, and none of this <text1> nonsense.
Here's how it works for me. For my freeform content resources, I create a
resource of type xmlpage which copies its body from a 'file' in my module's
default_bodies folder (the location which OpenCms seems to search for in
populating the 'copy body from' drop down). That file contains the
following:
<?xml version="1.0" encoding="UTF-8"?>
<pages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.opencms.org/dtd/6.0/xmlpage.xsd">
<page language="en">
<element name="body">
<links/>
<content><![CDATA[]]></content>
</element>
</page>
</pages>
The xmlpage I create has as its 'template' a JSP in my module structure
called freeformTemplate.jsp, and this JSP just looks for an element called
'body' in the resource which caused it to be invoked.
Hope this helps.
Jon
-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Chris Tiernan
Sent: 29 September 2006 17:57
To: The OpenCms mailing list
Subject: RE: [opencms-dev] Defining & Customizing Editable Bodies
Can anybody provide insight or point me in the right direction in regards to
this question? Thanks again.
-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Chris Tiernan
Sent: Wednesday, September 27, 2006 5:42 PM
To: opencms-dev at opencms.org
Subject: [opencms-dev] Defining & Customizing Editable Bodies
My site is configured to only use the 'body' element for user editable text
using FCKeditor. I do *not* wish to use any other element (i.e.
text1,
text2, etc.) at this time and I have configured my template-elements for my
template to be "body*|Content Body".
However, the FCKeditor continues to default the elements dropdown to text1,
unless I select the "Default body" option in the "Copy body from"
list. Is there a way to have it default it to my "body*|Content Body"
or, better yet, have the "Copy body from" dropdown list (New > Page with
free text) default to the "Default body" option?
I am running OpenCms version 6.2.1
Best,
Chris
_______________________________________________
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
_______________________________________________
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
More information about the opencms-dev
mailing list