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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Remove comments in page output?


Go to End


3 Posts   1934 Views

Avatar
jason2009

Community Member, 7 Posts

25 April 2009 at 6:43am

When viewing the site and looking at the code, I see this all over:
<!-- end template C:/wamp/www/silverstripe/blog/templates/Layout/BlogHolder.ss -->

how do I get rid of those?

Avatar
Howard

Community Member, 215 Posts

25 April 2009 at 9:51am

They are only shown when the site is in 'Dev' mode to help users with templating, take the site out of dev mode and they will disappear :)

Avatar
Ben Gribaudo

Community Member, 181 Posts

28 April 2009 at 1:01am

You can also put

SSViewer::set_source_file_comments(false);

in your _config.php file to turn those comments off.

Ben