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, Ed, biapar, Willr, Ingo

setting defaults for page types

Go to End

2 Posts   1368 Views


Forum Moderator, 224 Posts

7 February 2008 at 2:54pm

Edited: 07/02/2008 2:56pm

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.



Community Member, 501 Posts

9 February 2008 at 11:36am

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.