Forums / Setup & design / Submitting <h1>-tags in articles in eZ 3.1 admin?
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
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...
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.
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 validateBody: 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);
Monday 14 July 2003 5:26:24 am
There is a / missing in the closing </header>. :-)
Monday 14 July 2003 5:27:29 am
Sorry..