Comments in settings.txt

Topics: Administration, Core, General, Troubleshooting, Writing modules
Jan 26, 2015 at 3:27 PM
I would like to use the settings.txt to switch between databases. I was hoping to have two versions of settings in my settings file and then comment one version, so I can switch back and forth? My question is what are the comment characters in the settings file?
Jan 26, 2015 at 4:04 PM

I don't think there is a special character for commenting a line in the settings.txt because for reading the settings.txt a normal FileReader is used (see and a switch statement for getting the right keys.

In this case you can use any character in front of the key (like #DataProvider: Sql) and it shouldn't be used by Orchard. Orchard loads the settings but stores the value with the key '#DataProvider'.