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.

Archive /

Our old forums are still available as a read-only archive.

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

Admin access to config settings


Reply


4 Posts   1716 Views

Avatar
roblgs

Community Member, 1 Post

3 May 2008 at 11:20am

Hi,

Please excuse the simplicity of the question...

I've had a quick look through the demo admin and cannot find where things such as settings for whether/not comments require moderation, login and so on.

Are settings such as these accessible through the admin interface and if so, where?

If not then are they settable via an external configuration file, or direct editing of a database table?

The same would apply to a forum and whether to require moderation and/or login of messages posted...

There seems to be an absence of access to 'administrative' type settings in the admin interface... That's in keeping with it being more content oriented, and settings typically are made once and then left alone. But how is it done in SilverStripe?

Thanks in Advance

Rob

Avatar
Sean

Forum Moderator, 922 Posts

3 May 2008 at 2:38pm

Edited: 03/05/2008 2:38pm

Settings are mostly done in the _config.php file inside the mysite directory.

e.g., this line would enable site wide page comment moderation:

PageComment::enableModeration();

Avatar
Willr

Forum Moderator, 5513 Posts

3 May 2008 at 6:31pm

There seems to be an absence of access to 'administrative' type settings in the admin interface

Yes, this is one of the design features of the SilverStripe CMS. Allow the developers control of the settings via the _config.php file and let the content authors deal with the content. A few page by page settings are defined in the CMS (eg basic access rights for the page, turning comments on/off) but for the large part the idea is to keep most of the developer features in the code.

Avatar
erwanpia

Community Member, 63 Posts

14 June 2008 at 7:29pm

Edited: 14/06/2008 8:20pm

Hi You will find here a tutorial on how to setup site wide config page

http://webxadmin.net/silverstripe-tutorials