Hi there, I’m trying to enable source_file_comments, but only in the front end of the site. Is there a way to make sure that source comments do not appear inside the CMS?
Perhaps you could put that in the init() method of your PageController.php?
public function init()
{
parent::init();
if (SilverStripe\Control\Director::isDev()) {
SilverStripe\View\SSViewer::config()->set('source_file_comments', true);
}
}