Jump to:

23459 Posts in 18906 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » Remove comments in page output?

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

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

Page: 1
Go to End
Author Topic: 1085 Views
  • jason2009
    Avatar
    Community Member
    7 Posts

    Remove comments in page output? Link to this post

    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?

  • Howard
    Avatar
    Community Member
    215 Posts

    Re: Remove comments in page output? Link to this post

    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

  • Ben Gribaudo
    Avatar
    Community Member
    181 Posts

    Re: Remove comments in page output? Link to this post

    You can also put

    SSViewer::set_source_file_comments(false);


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

    Ben

    1085 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.