[Pmwiki-users] How to know the group name from a script?

Alexandre Courbot Alexandre.Courbot
Thu Aug 26 06:57:22 CDT 2004


>>I'd need to know the name of the group the currently processed Wiki page 
>>belongs to, from a script that is included from config.php. I've looked 
>>into the doc and pmwiki.php itself, but it seems that the group name is 
>>never globally and clearly available. Is there something I missed? How 
>>could I do to get it anyway?
> 
> 
> $group = FmtPageName('$Group',$pagename);

Thanks. $pagename was empty when I tried, however $GLOBALS['pagename'] 
did work.

Alex.
-- 
Alexandre Courbot
PhD Student - LIFL/RD2P
http://www.lifl.fr/~courbot/



More information about the pmwiki-users mailing list