17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1490 Views |
-
Admin access to config settings

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
-
Re: Admin access to config settings

3 May 2008 at 2:38pm Last edited: 3 May 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();
-
Re: Admin access to config settings

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.
-
Re: Admin access to config settings

14 June 2008 at 7:29pm Last edited: 14 June 2008 8:20pm
Hi You will find here a tutorial on how to setup site wide config page
| 1490 Views | ||
|
Page:
1
|
Go to Top |



