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.

Themes /

Discuss SilverStripe Themes.

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

SOLVED - Displaying template name in HTML comments


Reply


3 Posts   746 Views

Avatar
Double-A-Ron

Community Member, 604 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, 604 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, 5513 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