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.

General Questions /

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

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

Default Viewer Group for Custom Page Type


Reply


491 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