[opencms-dev] Writing HTML directly into a vfs file
David Seikel
david.seikel at icemedia.com.au
Tue Jul 1 05:43:01 CEST 2003
For some strange reason, my email editor is giving me problems with this
reply. I suspect that there are too many > characters (which it uses
for quoting). My reply may come out strangely formatted.
Matthias Schmidt wrote:
> ================
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <XMLTEMPLATE>
> <TEMPLATE><![CDATA[<strong>dfhjdfhdfhfh</strong>]]></TEMPLATE>
> <edittemplate><![CDATA[<STRONG>dfhjdfhdfhfh</STRONG>]]></edittemplate>
> </XMLTEMPLATE>
> ================
<snip>
> 2) I'd rather not touch the xml myself, because I don't understand what
> this saving things twice thing is used to.
Going backwards, <edittemplate> is what is actually entered by the user,
either via the WYSIWYG editor or the source code editor. <TEMPLATE> is
the result after OpenCMS parses the input (jTidy) and massages things,
mostly the links I think. <TEMPLATE> is what is actually displayed when
you load the page into your browser. In other words, <ELEMENT name="body">
returns the <TEMPLATE> just like in any other template file.
The next time someone edits the page, they are shown <edittemplate>.
More information about the opencms-dev
mailing list