[pmwiki-users] Totally Perplexed by Farming and Fields...
    Hans 
    design at softflow.co.uk
       
    Mon Jan 23 04:12:42 CST 2006
    
    
  
Monday, January 23, 2006, 9:09:11 AM, Joachim wrote:
> In an emergency, you can do things like
>    if ($group == 'some_group') {
>      ... do some group-specific setup here ...
>    }
> in your config.php. (I haven't checked whether $group is really the 
> correct variable name.)
> (I just saw that there seems to be a way to set up a per-group
> configuration file. Just drop a file named <group>.php into the local/
> directory. Seems to be a new feature that was introduced in the last few
> months.)
This feature has been part of pmwiki all along:
see PmWiki/PerGroupCustomizations as part of the standard
documentation.
If you want to have your per group customizations not in separate
local/SomeGroup.php files, but included in local/config.php,
use this to put your customization codes for group SomeGroup:
$thisgroup = FmtPageName('$Group', $pagename);
if ($thisgroup == 'SomeGroup') {
   # group specific code goes here...
   # ....
}
($thisgroup is just an arbitrary variable name.)
Best, 
~Hans                           
    
    
More information about the pmwiki-users
mailing list