[opencms-dev] creating editable content

GV kpkp at gmx.net
Sun Jun 26 19:04:54 CEST 2005


Hi,

I have the following case:

There is a template which looks like (I put some tabs in the front of the 
lines I'd like to emphasize!):

-------------
<%@ page session="false" %>
<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>


<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title><cms:property name="Title" escapeHtml="true" /></title>

<meta HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; CHARSET=<cms:property 
name="content-encoding" default="ISO-8859-1" />">

<cms:include file="header" />

       <cms:editable />

</head>
<body>
<!-- Main page body starts here -->
<br>
<br>
<br>

       <cms:template element="MainBody">

<table bgcolor="#ffffff" border="0"
 cellpadding="0" cellspacing="0" height="383"
 width="780">
  <tbody>
    <tr>
      <td colspan="3" height="233">
      <table style="width: 776px; height: 131px;" border="0" cellpadding="10" 
cellspacing="0">
<!--DWLayoutTable--> <tbody>
          <tr>
            <td style="vertical-align: top; height: 391px; width: 
100px;"></td>
            <td class="body" valign="top" width="538">

                  <cms:include element="MainBody" editable="true"/>
                  <cms:include file="../resources/HomeText" editable="true" />
             <br>
            </td>
          </tr>
        </tbody>
      </table>
      </td>
    </tr>
  </tbody>
</table>


      </cms:template>

</body>
</html>

---------------------------------------------------------------

As you can derive, there is a pre-formatted text included 
(../resources/HomeText) which I would like to be editable from an HTML page 
created based on the above template.

When this HTML page is created, I do get the "edit" button but regardles what 
I write with the editor nothing gets displayed. Also, the editor, doesn't 
display the existing (../resources/HomeText) text. Now, when I go to this 
newly created HTML page and request the sourcecode via the "Edit Sourcecode" 
selection, I can view what I newly typed with the editor!!!

Obviously I messing up with the tags in the above template but what exactly am 
I doing wrong?

Thanks for your help.

George



More information about the opencms-dev mailing list