This site has been archived. To learn more about our current products Ibexa Content, Ibexa Experience, Ibexa Commerce head over to the Ibexa Developer Portal

eZ Community » Forums » Developer » Line breaks in ezxmltext headings

Line breaks in ezxmltext headings

Line breaks in ezxmltext headings

Thursday 03 May 2012 4:32:04 am - 6 replies

Currently, line breaks in headings don't seem to be outputted in ezxmltext - I want to allow this.

Can anyone point me at the right input/output renderer/handler? (there's just so many!)

Or is there a simpler way?

Thanks in advance,

Thursday 03 May 2012 6:19:19 pm

Hi Geoff,

i'm facing the same problem atm. While Generating xml-editors content from diifferent attributes i am not able to a simple break. It is always a block with to much padding. For now i don't have a solution for this. But as soon as I will find a solution you will be the first who knows blunk.gif Emoticon 

Best Regards


Thursday 03 May 2012 10:50:44 pm

Hi Christoph,

If you're unsure how to create breaks in the Rich Text Editor, simple breaks in paragraphs are created using Shift+Enter on your keyboard.  These will output correctly as <br /> tags, but they are seemingly stripped out in headers (H1, H2 etc).

If that's not your problem, great!  Let's see if we can find the solution.


Friday 11 May 2012 2:21:46 pm

Hey Geoff,

maybe it wasn't clear enough, what my problem is. But before did you already manage to find a solution?

Ok, my case:

I create content-objects programmatically, to be more precise I create new versions of content-objects. The problem is to create correct soft-linebreaks in xml-blocks programmatically. If simply put in the suggested <br/> .But somehow its parsed out. <p></p> or <div> constructions are not valid/empty and not very nice at all. But my eZ version is 4.2 very heavily extended fortunately within extensions. But i cannot add a simple break.

Maybe should check that again if a / is missing or something, becuase its all bit confusing to me. In my opinion this is a simple xml-block to parse. 

Rainy regards


Sunday 20 May 2012 4:24:31 pm

Hi Geoff, 

i solved my problem by using 


But this won't solve your issue than. Maybe you should work in one or more in the following files: 


Hope this helps you a bit. 



p.s.: maybe those files are already obsolete.Because I can't find any cons somewhere.

Sunday 20 May 2012 9:26:14 pm

Thanks Chris - I'll post back here if I find what I'm looking for!

Tuesday 22 May 2012 6:35:01 am

I thought it might be as simple as adding 'line' to the header['blockChildrenAllowed'] array in ezxmlschema.php , but no.

I would honestly pay for someone to solve this problem. 

Modified on Tuesday 22 May 2012 6:36:33 am by Geoff Bentley


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from