[opencms-dev] default bodies

Jonathan Woods jonathan.woods at scintillance.com
Sun Jun 25 07:48:46 CEST 2006


Alireza -
 
The xmlpage resource type produces XML as in your second example.  If you
edit such a resource through the Workplace, then your arbitrary content gets
put in the <content> tag like this:
 
<?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>
        <link name="link0" type="IMG" internal="true">
 
<target><![CDATA[/sites/default/_galleries/development/d_events_500comp.jpg]
]></target>
        </link>
      </links>
      <content><![CDATA[<table cellspacing="1" cellpadding="1" width="100%"
summary="" border="0">
<tbody>
...........</tbody>
</table>]]></content>
    </element>
  </page>
</pages>

- in other words, <content><![CDATA[your content]]></content>.
 
I'm not sure how default body content relates to xmlpage documents, but you
could experiement.
 
Jon
 
  _____  

From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Mr Alireza Fattahi
Sent: 24 June 2006 11:47
To: opencms-dev at opencms.org
Subject: [opencms-dev] default bodies


Hi,

We have confused in the way that we can use OpenCMS default bodies!
In version 5.0  below XML would worked:
<XMLTEMPLATE>
    <TEMPLATE> <![CDATA[ All my html tags ]]></TEMPLATE> 
</XMLTEMPLATE>
  
But in version 6.0 it seems that the structure of this is changed!
The new structure is:
 <pages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.opencms.org/dtd/6.0/xmlpage.xsd">
  <page language="de">
    <element name="text1">
      <links/>
      <content/>
    </element>
  <page>

My question is, what does above mean?! Where can I put my HTML contents (
for example a <table> tag with all of its <td> and <tr>?

Regards,
Alireza Fattahi




  _____  

All
<http://us.rd.yahoo.com/mail/uk/taglines/default/nowyoucan/spamguard/*http:/
/us.rd.yahoo.com/evt=40565/*http://uk.docs.yahoo.com/nowyoucan.html> New
Yahoo! Mail - Tired of Vi at gr@! come-ons? Let our SpamGuard protect you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060625/dbb82bd1/attachment.htm>


More information about the opencms-dev mailing list