Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » setting defaults for page types

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: 1185 Views
  • Nicolaas
    Forum Moderator
    213 Posts

    setting defaults for page types Link to this post

    Hi Gurus

    Is there a way to set a default "behaviour" or "access" setting for a page type? For example, for "members-only" pages, if the CMS admin creates a new "members-only" page, the access is automatically set to "logged-in users" only.

    Any ideas appreciated.


  • dio5
    Community Member
    501 Posts

    Re: setting defaults for page types Link to this post

    I know there's a defaults array you can set for every page type.

    So maybe you could try something like:

    static $defaults = array( "Viewers" => "Anyone" ); (Or "LoggedInUsers" or "OnlyTheseUsers")

    but I'm not sure if that's what you're looking for.

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.