Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Themes /

Discuss SilverStripe Themes.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

SOLVED - Displaying template name in HTML comments


Go to End


3 Posts   1457 Views

Avatar
Double-A-Ron

Community Member, 607 Posts

5 June 2013 at 5:05pm

I can't for the life remember what the _config.php setting was for the paths to templates to showing in the HTML source when a page has rendered.

I've used it before, just a couple of weeks ago. But I cannot recall and if scoured Google and the Docs.

Avatar
Double-A-Ron

Community Member, 607 Posts

5 June 2013 at 5:08pm

Aaaaand just now it comes to me:

SSViewer::set_source_file_comments(true);

And do a flush.

Avatar
Willr

Forum Moderator, 5523 Posts

7 June 2013 at 10:31pm

Or in 3.2 you'll need to use the config API for this

// mysite/_config/app.yml

SSViewer:
source_file_comments: false