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.
|