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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Themes /

Discuss SilverStripe Themes.

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

SOLVED - Displaying template name in HTML comments


Go to End


3 Posts   2020 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