how can I stop <li> tag class attribute being removed

Author Message

David Behan

Tuesday 17 January 2006 4:53:25 am

Hi,

We're adding content into ezpublish and pasting in html code. Some of the code is being stripped, e.g. <li class='num1'> is becoming <li>. And putting [] around the class isn't supported.

Any ideas on how to get around this?

Thanks,

Dave

Ɓukasz Serwatka

Thursday 19 January 2006 1:19:50 am

Hi David,

Welcome to eZ publish Community!

class attribute for <li> is not supported by eZXML filed which you using.

Here you can find complete list of supported tags:
http://ez.no/doc/ez_publish/technical_manual/3_6/reference/xml_tags

If want to use plain xhtml, you will need to extend your class with new attribute e.g "html filed" (Text filed datatype). However this is not recommend content storage.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 09:57:19
Script start
Timing: Jan 19 2025 09:57:19
Module start 'layout'
Timing: Jan 19 2025 09:57:19
Module start 'content'
Timing: Jan 19 2025 09:57:19
Module end 'content'
Timing: Jan 19 2025 09:57:19
Script end

Main resources:

Total runtime0.5720 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 589.4063152.6563
Module start 'layout' 0.00700.0042 742.062539.5078
Module start 'content' 0.01120.5594 781.5703524.9063
Module end 'content' 0.57070.0013 1,306.47668.2656
Script end 0.5720  1,314.7422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.5503160.0002
Check MTime0.00130.2283160.0001
Mysql Total
Database connection0.00150.257510.0015
Mysqli_queries0.522891.4013540.0097
Looping result0.00060.1069520.0000
Template Total0.533593.320.2668
Template load0.00230.395420.0011
Template processing0.531392.872920.2656
Template load and register function0.00020.035310.0002
states
state_id_array0.00150.260810.0015
state_identifier_array0.00080.146720.0004
Override
Cache load0.00190.3310160.0001
Sytem overhead
Fetch class attribute can translate value0.00080.146020.0004
Fetch class attribute name0.00130.227130.0004
XML
Image XML parsing0.00060.109620.0003
class_abstraction
Instantiating content class attribute0.00000.001930.0000
General
dbfile0.00540.9370180.0003
String conversion0.00000.001640.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs