[opencms-dev] Simple HTML page?
Joe Desbonnet
jdesbonnet at gmail.com
Mon Jul 4 14:41:39 CEST 2005
Are you using 'TemplateOne'? If so use the content editor (eg create
page, click on page in explorer view, then click on the edit icon (red
box) in the page preview). If you want to edit the HTML directly,
click on the "<>" icon and the view will switch to raw HTML.
If you select "Edit sourcecode" in the explorer you are seeing the XML
content of the page.
The page HTML is encapsulated there. If you edit the sourcecode you
must preserve the XML structure.
For example one of my pages it looks something 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="de">
<element name="text1">
<links/>
<content/>
</element>
[ ... stuff deleted ...]
</page>
<page language="en">
<element name="text1">
<links>
<link name="link0" type="IMG" internal="true">
<target><![CDATA[/sites/GalwayNet/images/activities/golfgeneral.jpg]]></target>
<query><![CDATA[width=120]]></query>
</link>
</links>
<content><![CDATA[<img border="0" alt="golfgeneral.jpg"
title="golfgeneral.jpg" src="${link0}" />]]></content>
</element>
<element name="text2">
<links/>
<content><![CDATA[Local news and weather, blah<br /><br />]]></content>
</element>
<element name="text3">
<links/>
<content><![CDATA[Photo of the week .. blah blah<br /><br />]]></content>
</element>
<element name="text4">
<links/>
<content><![CDATA[<h2>Entertainment Guide</h2>
blah blah]]></content>
</element>
<element name="text5">
<links/>
<content/>
</element>
<element name="text6">
<links/>
<content/>
</element>
<element name="text7">
<links/>
<content/>
</element>
<element name="text8">
<links/>
<content/>
</element>
</page>
</pages>
On 7/4/05, Angus <opencms at pokerimps.com> wrote:
> Hi, I have what I'm sure is a really simple problem...
>
> I have just installed opencms (6) and am just playing with it to see what
> it can do.
>
> I can get JSP pages to show up and work no problem but I can't get the body
> of a simple HTML page to show up.
>
> I have created a file test.html as a 'page' in opencms, added some text in
> the sourcecode editor but when I visit the page after publication all I see
> is the HTML at the bottom of this email
>
> When I click the file and go to "Edit sourcecode" in the workplace I get:
> <P>Some text...</P>
> <P>Some more...</P>
>
> but as you can see below there is nothing in the body when I visit the
> page, just a load of whitespace.
>
> Anyone have any ideas?
>
> Thanks
> Angus
>
>
> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html>
> <head>
> <title>OpenCms - Test title</title>
> <meta HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; CHARSET=ISO-8859-1">
> <meta name="description" content="Test Description">
> <meta name="keywords" content="Test keywords">
>
> </head>
> <body>
>
>
>
>
>
>
> </body>
> </html>
>
>
>
>
>
>
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.323 / Virus Database: 267.8.8/37 - Release Date: 01/07/2005
>
>
>
>
> _______________________________________________
> 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