Forums / Setup & design / Submitting <h1>-tags in articles in eZ 3.1 admin?

Submitting <h1>-tags in articles in eZ 3.1 admin?

Author Message

Valentin Svelland

Monday 14 July 2003 4:23:20 am

Anyone know how to get the eZ 3.1 admin to accept tags like <h1>, <h2> and custom tags in textfields when publishing articles?

Related postings in forum:
http://ez.no/developer/ez_publish_3/forum/suggestions/headings_h1_h2_h3/re_headings_h1_h2_h3__1

Karsten Jennissen

Monday 14 July 2003 4:27:29 am

Isn't it <header level="1"></header>?

Custom tags:
http://ez.no/developer/ez_publish_3/documentation/customization/tips_tricks/custom_tags

Karsten

Valentin Svelland

Monday 14 July 2003 4:38:10 am

I'm not quite sure what you're trying to tell me. I'd like to write a text like "<h1>This is the title</h1> This is the rest of the text" into the eZ v.3.1 admin without the xml-parser washing away my html-formatting. I'd also like to make my own tags like <link>http://www.ez.no</link> and get these parsed right...

Karsten Jennissen

Monday 14 July 2003 5:11:19 am

Hi Valentin,

the xml parser doesn't understand <h1></h1> but instead you can use <header level="1"></header>. In the output this will become <h1>, so that's exactly what you wanted.

The link I posted goes to the documentation and explains how you can set up custom tags, as you want to do.

Karsten

Valentin Svelland

Monday 14 July 2003 5:22:39 am

Ok, now I see your point. However putting this snippet into my Body-field "<header level="1">Kontaktinformasjon:<header>" generates this error in my admin when trying to publish article:

Input did not validate
Body: Tag 'header' is not allowed to be the child of 'header' (removed);Tag 'strong' is not allowed to be the child of 'header' (removed);Unmatched tag header;Tag 'strong' is not allowed to be the child of 'header' (removed);Tag 'strong' is not allowed to be the child of 'header' (removed);Tag 'strong' is not allowed to be the child of 'header' (removed);Tag 'strong' is not allowed to be the child of 'header' (removed);Tag 'header' is not allowed to be the child of 'header' (removed);

Karsten Jennissen

Monday 14 July 2003 5:26:24 am

There is a / missing in the closing </header>. :-)

Valentin Svelland

Monday 14 July 2003 5:27:29 am

Sorry..

eZ debug

Timing: Jan 18 2025 11:11:56
Script start
Timing: Jan 18 2025 11:11:56
Module start 'content'
Timing: Jan 18 2025 11:11:58
Module end 'content'
Timing: Jan 18 2025 11:11:58
Script end

Main resources:

Total runtime1.3113 sec
Peak memory usage4,096.0000 KB
Database Queries206

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 588.9766180.8125
Module start 'content' 0.00641.1412 769.7891552.5625
Module end 'content' 1.14750.1638 1,322.3516337.0547
Script end 1.3113  1,659.4063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00480.3657210.0002
Check MTime0.00160.1224210.0001
Mysql Total
Database connection0.00090.070410.0009
Mysqli_queries1.226193.50012060.0060
Looping result0.00240.18162040.0000
Template Total1.275197.220.6375
Template load0.00220.166620.0011
Template processing1.272997.065520.6364
Template load and register function0.00010.008110.0001
states
state_id_array0.00150.114610.0015
state_identifier_array0.00350.268620.0018
Override
Cache load0.00190.1441300.0001
Sytem overhead
Fetch class attribute can translate value0.00250.190330.0008
Fetch class attribute name0.00130.095880.0002
XML
Image XML parsing0.00100.072730.0003
class_abstraction
Instantiating content class attribute0.00000.0019110.0000
General
dbfile0.00350.2656270.0001
String conversion0.00000.000430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs