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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 22:13:16
Script start
Timing: Jan 18 2025 22:13:16
Module start 'layout'
Timing: Jan 18 2025 22:13:16
Module start 'content'
Timing: Jan 18 2025 22:13:17
Module end 'content'
Timing: Jan 18 2025 22:13:17
Script end

Main resources:

Total runtime0.9860 sec
Peak memory usage4,096.0000 KB
Database Queries77

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 587.8125152.6094
Module start 'layout' 0.00560.0036 740.421939.4141
Module start 'content' 0.00910.9756 779.8359718.8359
Module end 'content' 0.98470.0013 1,498.671916.1875
Script end 0.9860  1,514.8594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3557160.0002
Check MTime0.00150.1538160.0001
Mysql Total
Database connection0.00070.072610.0007
Mysqli_queries0.924793.7790770.0120
Looping result0.00090.0903750.0000
Template Total0.954196.820.4771
Template load0.00230.229920.0011
Template processing0.951996.533320.4759
Template load and register function0.00020.020310.0002
states
state_id_array0.00090.090010.0009
state_identifier_array0.00140.138020.0007
Override
Cache load0.00180.1800350.0001
Sytem overhead
Fetch class attribute can translate value0.00060.062860.0001
Fetch class attribute name0.00120.118490.0001
XML
Image XML parsing0.00140.143260.0002
class_abstraction
Instantiating content class attribute0.00000.001790.0000
General
dbfile0.00090.0864230.0000
String conversion0.00000.002840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs