[opencms-dev] creating editable content

GV kpkp at gmx.net
Mon Jun 27 13:59:46 CEST 2005


correct! Thanks for the tip!

Now, what is this "*" I have to type at the end of the element name and what 
happens if I have more than one elements? How do I enter more than one names 
in this field? What's the syntax for that?

Thanks for your prompt help

George

On Monday 27 June 2005 08:20, Borja Marcos Suarez wrote:
> you have to add to the 'template elements' properties of the template
> file the elements you want to make them editable.
>
> So write MainBody* in this property and then it will appear on the
> elements list box when you are editing a page.
>
> Hope this helps you.
>
> Best regards,
>
> Borja
>
>
> -----Mensaje original-----
> De: opencms-dev-bounces at opencms.org
> [mailto:opencms-dev-bounces at opencms.org] En nombre de GV
> Enviado el: domingo, 26 de junio de 2005 19:05
> Para: The OpenCms mailing list
> Asunto: [opencms-dev] creating editable content
>
> 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
>
>
> _______________________________________________
> 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