Jump to:

10979 Posts in 2722 Topics by 1815 members

All other Modules

SilverStripe Forums » All other Modules » Form Module (html comment issue)

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 908 Views
  • martin_w
    Avatar
    Community Member
    28 Posts

    Form Module (html comment issue) Link to this post

    Hello guys!

    I've been searching for a long time now, but i didn't solve my problem yet.

    The thing is, although I set off the "dev" mode, there are still html comments in my code because of the form module.
    Comments like this:
    <!-- template /var/www/.../.../httpdocs/sapphire/templates/Includes/Form.ss -->

    I don't wan't this comments in my code.
    How can I set them off?

    I also tried
    "SSViewer::set_source_file_comments(false);"
    but it didn't work.

    I really hope someone can help me how to solve my issue.

    thanks a lot, martin

  • 3dgoo
    Avatar
    Community Member
    133 Posts

    Re: Form Module (html comment issue) Link to this post

    Putting this in my _config.php file and then flushing the page with ?flush=all worked for me:

    SSViewer::set_source_file_comments(false);

    If this isn't working for you, you could always try removing localhost and 127.0.0.1 from the dev_servers list

  • martin_w
    Avatar
    Community Member
    28 Posts

    Re: Form Module (html comment issue) Link to this post

    hello, big thanks!!.. it works

    the key was the "?flush=all".

    908 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.