HOWTO: Show only comment in HTML source when debuging templates

HOWTO: Show only comment in HTML source when debuging templates

Saturday 29 November 2003 12:40:40 pm - 1 reply

Modified on Saturday 29 November 2003 12:54:11 pm by Aya Brea

Author Message

Aya Brea

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

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.