Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Admin access to config settings

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

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

Page: 1
Go to End
Author Topic: 1631 Views
  • roblgs
    Avatar
    Community Member
    1 Post

    Admin access to config settings Link to this post

    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

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Admin access to config settings Link to this post

    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();

  • Willr
    Avatar
    Forum Moderator
    5490 Posts

    Re: Admin access to config settings Link to this post

    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.

  • erwanpia
    Avatar
    Community Member
    63 Posts

    Re: Admin access to config settings Link to this post

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

    http://webxadmin.net/silverstripe-tutorials

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