Forums / Setup & design / HOWTO: Show only comment in HTML source when debuging templates
Aya Brea
Saturday 29 November 2003 12:40:40 pm
Hello,
When I turn on the templatedebuging, eZp print out following HTML code:
<!-- including template design/ez/override/templates/page_head.tpl --><p class="small">design/ez/override/templates/page_head.tpl</p><br/>
How can I turn off that <p>something</p><br /> things? I need only the comment, when developing the template, these <p> tags is annoying...
Saturday 29 November 2003 12:48:03 pm
I found out that there's no settings can do this, so I make a minor hack:
Open file:/path/to/ezp/lib/eztemplate/classes/eztemplatefileresource.php
Goto line:258 (eZ publish 3.2.3)
That's the line that output the template debuging. Change it to whatever you want. For those who don't know much about PHP. Change that to following:$text = "<!-- $path -->\n" . $text;
Happy templating eZ publish :D