On 1/28/2010 4:50 PM, ABClf wrote:
> Hello !
>
> My question : is there a way to disable a cookbook in some Group and how ?
> If one loads a cookbook X using config.php, then, is there a way to
> disable this cookbook for PrivateGroup ; or, same purpose, is there a
> way to load the cookbook for all the site but PrivateGroup ?
>
> For example, does this kind of conditional line work in config.php ?
>
> if!($group == 'PrivateGroup')
> elseif ($action == 'edit' || $action == 'comment') {
> include_once("$FarmD/cookbook/authorcontrib.php"); }
That should work, but you'd need to get $group first. There are a number 
of ways to do that, here's one:
   $pagename = ResolvePageName($pagename);  #undo clean urls (replace / 
with .) to make pagename checks easier
   list($group, $name) = explode('.', $pagename);



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

Reply via email to