[pmwiki-users] {(serialname Group Name)} and variable $SerialStart from Powertools

Hans design5 at softflow.co.uk
Mon Aug 24 04:42:13 CDT 2009

Monday, August 24, 2009, 10:08:23 AM, Graham Archer wrote:

> I would like to use {(serialname Group Name)} for various Groups.

> For each group I need a different Start Number, i.e  0100 for Group A,
> 0200 for Group B.

> I notice that to do this I need to set variable $SerialStart in config.php.

put in config.php something like:

$group = PageVar($pagename,'$Group');
if ($group=='GroupA') $SerialStart = '0100';
if ($group=='GroupB') $SerialStart = '0200';
if ($group=='GroupC') $SerialStart = '0300';



More information about the pmwiki-users mailing list