Forums / Developer / Aricles in html / Comment37418

Author Topic

Paul Borgermans

Wednesday 26 March 2003 8:01:16 am

Comment37418

No, the <literal> tag is not meant for this. It is essentially the equivalent of <pre> in xhtml

You may define a custom tag, say html which does what you want. I just extended my local ezp 3.0 with this.

Wanna now more?

1) First edit settings/content.ini and add the custom html tag:
#Under
[CustomTagSettings]
#make a new entry:
AvailableCustomTags[]=html

2) Make a new template html.tpl in
design/standard/templates/content/view/datatypes/ezxmltags

with the content

{$content}

3) surround your html code by

<custom name="html">
your html code
</custom>

4) Voila, you'v dunit
-----------------------
Much much better:

replace the missing html tags with individual custom tags, rather than block wise if appropriate.

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans