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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Default Viewer Group for Custom Page Type


Go to End


755 Views

Avatar
obj63mc

Community Member, 25 Posts

13 January 2012 at 5:56am

Hello,

I have a cms setup where we have various categories of content and each category is setup so only Admins and a new specific group can view that category.

What I want to do though is to set the default Access group to Admins only so that way when an admin creates the new category, all other users won't be able to view it if they don't set up the Access tab by default.

Basically looking for a short cut to set defaults for the 'Access' tab on the cms so 'Who Can view this Page' is set to 'Only these people' and the group is 'Administrators'. I know you can set defaults of specific variables of the page class with the $defaults variable but can't seem to find one for this.

TIA,
Joe