Forums / Setup & design / HTML in articles

HTML in articles

Author Message

sem hadland

Saturday 28 August 2004 1:22:14 am

HELLO
I will create some content with much HTML and it is not possible to use all these tags when I create an "article".

Do I need to create a new CLASS or can I use any of the pre-made classes?

Thank you very much for your help.

Paul Forsyth

Saturday 28 August 2004 3:57:46 am

If you want to use html in your article change the article class and replace xml text field with a text field. A text field does not have the same restrictions upon it. Alternatively make a copy of the article class and make this change here.

paul

Georg Franz

Saturday 28 August 2004 8:10:53 am

Hi,

if you want to use html within an article-text, just use the "literal" tag.

<literal class="html">Here is the <b>html-code</b></literal>

Have a look at:
http://ez.no/ez_publish/documentation/reference/xml_tags

Best wishes,
Georg.

--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004

Mazin Mustafa

Wednesday 29 September 2004 9:10:00 am

I am a little confused. I have created a class with a text field and put some simple HTML in it; tried table, br, ul, ..etc. The result is that the html tags just show up as part of the text in te display. The browser does not recognize them. The site where this is being tested uses unicode if that matters.

What am I missing?

Mazin Mustafa

Wednesday 29 September 2004 9:44:36 am

Here is an experiment:

I created an override template for eztext.tpl and changed:

{$attribute.content|wash(xhtml)} -> {$attribute.content}

Just took out the wash. The HTML is processed just fine. Is this expected behavior? Previous suggestions on using text fields tells me that it isn't.

Paul Borgermans

Wednesday 29 September 2004 9:57:58 am

Yes, that is the intended (normal) behaviour. Now you should be careful with html content as for example arbitrary javascript can be inserted unless you are in a controlled situation with trusted editors.

-paul

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

Peter Singewald

Tuesday 20 September 2005 6:22:23 am

Just found this thread. I got a similar problem, but I do not use "wash".
I have migrated the contend from my local ez-installation to another server and what worked just fine locally, is parsed on the server in the admin and on the pages in a way, that the content I put into <literal>-tags now displays with all less-than sign replaced by their entity-value (&lt;). Rather annoying.
Is there a setting somewhere in ez 3.6 that enables "auto-washing". I looked in every sensible place, but could not find any.

Thanks in advance
Peter