eZ Community » Forums » Developer » eZ 5.4 - How to disable list of used...
expandshrink

eZ 5.4 - How to disable list of used templates?

eZ 5.4 - How to disable list of used templates?

Wednesday 11 March 2015 3:36:31 pm - 1 reply

Hi there.

I am currently playing with eZ 5.4 version. In my existing project (which is on 5.1) I have many dynamic requests that return json content with NO pagelayout.

Now in version 5.4 all these calls do not response as expected, because there is the list of used templates inside the response sourcecode:

 <!-- START mytemplate.html.twig -->
JSON CONTENT
<!-- END mytemplate.html.twig --> 

How can I disable that?

Thanks for your help.

Philip

 

EDIT:

I am currenty in DEV mode. I think the output won't be there in PROD. But I don't want that to be displayed in DEV mode also...

Modified on Wednesday 11 March 2015 3:38:15 pm by Philip K.

Thursday 12 March 2015 8:51:00 am

I found it. It is part of the eZPublishDebugBundle

https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Bundle/EzPublishDebugBundle/Twig/DebugTemplate.php

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from