Share » Forums » Setup & design » Changing behavior of XML text field...

Changing behavior of XML text field and/or Online Editor?

Changing behavior of XML text field and/or Online Editor?

Wednesday 29 March 2006 1:15:00 pm - 2 replies

Author Message

Kirill Subbotin

Monday 03 April 2006 5:08:48 am

The problem is that current inner eZXML format is quite different from XHTML 1 and current output implementation doesn't work well in some cases. But we are going to improve this for future versions, and also probably some of your issues can be solved even now in some way.

Please give me examples of you input and output and point what exactly is wrong in your opinion. (Input can be either "simplified xml" that is shown when OE is disabled or inner eZXML from the database) I think we will find some solution.

Luis Cruz

Wednesday 05 April 2006 2:25:53 pm

Greetings, Kirill; I have poked around in the kernel a bit and understand better why ezp is doing what it is doing. I'll have to dig a bit more for some concrete examples, but here is one specific annoyance I can outline.

For example, I go to edit a folder and enter in the sentence "Hello world; I'm a folder" into the short description. I add no formatting to the sentence; if I disable the OE, no tags appear around the sentence.

When I publish the folder and view it, ez has wrapped the short description with paragraph tags. After poking around in the kernel, I realized the blindingly obivious (finally); the field is an XML field which means its content has to be well-formed XML. However, I feel that wrapping a bare, unformatted sentence in a paragraph tag is not necessarily the best solution.

I can see wrapping it in paragraph tags if there is some form of line break in the field's content. But a single, unbroken piece of content I would prefer to see wrapped in something generic that does not impart any formatting/style to it.

In the short term, I basically have created an override template for p.tpl and pass in a variable that tells the template to not output the actual paragraph tag.

If I find some other examples, I'll post them here; for now, thank you for taking the time to read through this.

Cheers.

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

36 542 Users on board!

Forums menu