There may be a simpler method, but here's how I would go about it:

array_unshift($EditFunctions, 'SetAuths');

function SetAuths($pagename, &$page, &$new)
{
   if (@$new['text'] > '') return;
   if (preg_match("/\.GroupConfig$/i", $pagename))
      $new['editpasswd'] = '@admins';
}

Note this is absolutely untested - just typed into the email here, so
it will probably require some tweaking and there's no guarantee that
the concept itself works...

-Peter

On Sat, Aug 23, 2008 at 5:27 PM, noskule <[EMAIL PROTECTED]> wrote:
> hi list
> Does someone now if/how to assign attributes to a page with a given name.
>
> For example, I want that pages with names like "GroupConfig" are
> readable be everyone, but writeable only by the authgroup @admins.
>
>
> If a new group is created this should be applied automatically.
>
> thanks for any hints
> nos
>
>
> _______________________________________________
> pmwiki-users mailing list
> [email protected]
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to