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.

Archive

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

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

setting defaults for page types


Reply

2 Posts   1194 Views

Avatar
Nicolaas

7 February 2008 at 2:54pm (Last edited: 7 February 2008 2:56pm), Forum Moderator, 213 Posts

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.

Nicolaas

Avatar
dio5

9 February 2008 at 11:36am Community Member, 501 Posts

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.