Turn on the template debugging feature and it will help you see what the cascade of templates that renders the page does.
The datatype view template is my guess, but the template debug will tell all. You will need to clear the cache after enabled the debug, and beware that it will make the rest of the design look pretty bad. However, this tool is invaluable for determined where things like the <p> tags come from.
Once you find the offending template, override it by creating a new template with the same name, in the same relative location, but in your design folder (not the standard or base folders). Strip out the <p> tags and see if it worked. When it does, the template debug will reference your new template location.
Add this line to your site.ini.append.php for your user siteaccess:
Thanks for answer!
I turn on template debug and find out that every time when i try to fetch attribute that has type "XML Text field" some others template were included (ezxmltext.tpl and paragraph.tpl from standart directory).
So, tag <p> appeared from design/standard/templates/content/datatype/view/ezxmltags/paragraph.tpl.
I did override it (design/corporate/override/templates/paragraph.tpl), strip out tag <p>, and cleared cash.
It works! There is no <p> tag and design is normal.
BUT! I found out another problem. There is no <p> tag AT ALL. And it is problem in large text body (For examle in article body, where some pieces of text should be separated).
Seems like it is impossible to forbid show ezxmltext datatype NOT enclosed into <p>content</p> anyway. The content of an ezxmltext datatype is embeded into a <paragraph> by default.
It it impossible to solve it by template overrading. And i suppose that problem solving is in kernel .
I don't need to use several templates to display paragraph.
I just want to avoid embeding content into this tag in the beginning and in the end of content item. Paragraph inside content item is ok!
Problem is that content of an ezxmltext datatype is embeded into a <paragraph> by default. And it happens autonomically and I can't specify 'class' then.
You must be logged in to post messages in this topic!