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.

All other Modules /

Discuss all other Modules here.

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

Form Module (html comment issue)


Go to End


3 Posts   1774 Views

Avatar
martin_w

Community Member, 28 Posts

20 April 2010 at 9:00pm

Edited: 20/04/2010 9:04pm

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

Avatar
3dgoo

Community Member, 135 Posts

21 April 2010 at 1:56pm

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

Avatar
martin_w

Community Member, 28 Posts

21 April 2010 at 7:57pm

hello, big thanks!!.. it works

the key was the "?flush=all".