[opencms-dev] ver. 6 -- body not included

Siegfried Puchbauer siegfried.puchbauer at gmail.com
Tue Aug 9 12:26:43 CEST 2005


your element in the page resource is called "text1" ... so you should 
include the element text1 instead of body...

 <cms:include element= "text1"/>


2005/8/9, Xavier Ottolini <xavier.ottolini at adelis.com>:
> 
> Hi all!
> 
> I installed the next release of opencms 6. 
> I created a template with only one body. The body is included with the 
> following tag :
> 
> <%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms"<http://www.opencms.org/taglib/cms>%>
> 
> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html lang="<cms:property name="locale" default="en" file="search.uri"/>">
> <head>
> <title><cms:property name="Title" escapeHtml="true" /></title>
> <meta HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; CHARSET=<cms:property 
> name="content-encoding" default="UTF-8" />">
> <link type= "text/css" rel="stylesheet" 
> href="<cms:link>../resources/css/commun.css</cms:link>"> 
> </head> 
> <body>
> <!-- Main pagebody starts here -->
> <cms:include element= "body"/>
> <!--Main pagebody ends here -->
> </body> 
> </html>
> 
> 
> 
> I created a page with this template. I set the option "copy body from" to 
> "1 column, 1 row". 
> I edited the page with the wiwsywig editor. Here is the control code of 
> the page :
> <?xml version="1.0" encoding="UTF-8"?>
> 
> <pages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<http://www.w3.org/2001/XMLSchema-instance>xsi:noNamespaceSchemaLocation=
> "http://www.opencms.org/dtd/6.0/xmlpage.xsd"<http://www.opencms.org/dtd/6.0/xmlpage.xsd>
> >
> <page language="de">
> <element name="text1">
> <links/>
> <content/>
> </element>
> </page>
> <page language="en">
> <element name="text1">
> <links>
> <link name="link0" type="IMG" internal="true">
> <target><![CDATA[/sites/abas/images/titel.gif]]></target>
> </link>
> </links>
> <content><![CDATA[<P><IMG alt="" src="${link0}" border=0></P>
> <H1>Flexible and practice related ERP and eBusiness solutions for 
> medium-sized 
> businesses:</H1>
> <P>Using abas Business Software you can increase efficiency and 
> productivity 
> within your business. </P>
> <P>Short implementation periods and also a continuing upgrade strategy 
> ensure 
> investment security. You can easily operate abas ERP using the graphical 
> user 
> interface (GUI) or the browser. Possible platforms: Linux, Unix, 
> Windows</P>]]></content>
> </element>
> </page>
> </pages>
> 
> But when I preview the page. The content is not displayed in the body. 
> 
> The following message is displayed in the catalina log (I use Tomcat 4)
> 
> 2005-08-09 10:16:24 Exception initializing TldLocationsCache: XML parsing 
> error on file /WEB-INF/lib/standard-1.1.2.jar: (line 3, col 8): Document 
> is invalid: no grammar found.
> 2005-08-09 10:19:57 Exception initializing TldLocationsCache: zip file 
> closed
> 2005-08-09 10:22:03 Exception initializing TldLocationsCache: zip file 
> closed
> 
> No error message is displayed in the opencms log.
> 
> Has anybody any idea ?
> 
> Thanks in advance for fome help.
> 
> -- 
> Xavier Ottolini
> Développeur multimédia
> 
> Adelis
> 37, rue d'Engwiller
> 67350 La Walck
> France
> Téléphone : +33 (0) 3 88 72 29 10
> Télécopie : +33 (0) 3 88 72 29 19
> http://www.adelis.com
> 
> 
> 
> 
> _______________________________________________
> 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
> 
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20050809/4fa96b7f/attachment.htm>


More information about the opencms-dev mailing list