Html code in articles

Author Message

Bjørn Morten Svalland

Tuesday 20 February 2007 3:27:11 am

Does anyone know how I can put regular html code into an article? I vaguely remember that this was possible before, but I can't find it in the reference page in the documentation.

André R.

Tuesday 20 February 2007 3:39:06 am

You can either enable <literal class="html"> or develop your own custom tags.

From content.ini:

[literal]
AvailableClasses[]
# The class 'html' is disabled by default because it gives editors the
# possibility to insert html and javascript code in XML blocks.
# Don't enable the 'html' class unless you really trust all users who has
# privileges to edit objects containing XML blocks.
#AvailableClasses[]=html
CustomAttributes[]

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Betsy Gamrat

Saturday 24 February 2007 8:19:09 am

Another approach is to use

{$node.data_map.attribute.content}

in the template.

which should just output the raw content of the attribute (I'm assuming it is a text block).

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 19 2025 23:48:44
Script start
Timing: Jan 19 2025 23:48:44
Module start 'layout'
Timing: Jan 19 2025 23:48:44
Module start 'content'
Timing: Jan 19 2025 23:48:45
Module end 'content'
Timing: Jan 19 2025 23:48:45
Script end

Main resources:

Total runtime1.0921 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 589.0469152.6094
Module start 'layout' 0.00510.0028 741.656339.4141
Module start 'content' 0.00781.0795 781.0703573.9844
Module end 'content' 1.08730.0048 1,355.054712.1875
Script end 1.0921  1,367.2422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2715160.0002
Check MTime0.00120.1117160.0001
Mysql Total
Database connection0.00060.055910.0006
Mysqli_queries1.042795.4766590.0177
Looping result0.00070.0627570.0000
Template Total1.065497.620.5327
Template load0.00180.167820.0009
Template processing1.063697.385520.5318
Template load and register function0.00020.017110.0002
states
state_id_array0.00070.061510.0007
state_identifier_array0.00090.078020.0004
Override
Cache load0.00150.1383150.0001
Sytem overhead
Fetch class attribute can translate value0.00060.056430.0002
Fetch class attribute name0.00150.138250.0003
XML
Image XML parsing0.00130.115730.0004
class_abstraction
Instantiating content class attribute0.00000.001750.0000
General
dbfile0.00100.0935230.0000
String conversion0.00000.002940.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/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
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs