[pmwiki-devel] markup order for group headers

marc gmane at auxbuss.com
Tue Feb 6 11:12:58 CST 2007


Patrick R. Michaud said...
> On Tue, Feb 06, 2007 at 02:24:05PM -0000, marc wrote:
> > marc said...
> > > I've been meaning to setup a function that simply returned $Name and 
> > > contained a static variable count that would indicate the order clearly, 
> > > but I've been tackling something else and haven't got round to it. 
> > 
> > I've added a function that simply does:
> > 
> >   function mrcTest($name) {
> >     static $v = 0;
> >     $v++;
> >     return $v;
> >   }
> > 
> > Calling this in site and group headers and on WikiSandbox shows the 
> > order as page->Site header->Group header:
> > 
> >   http://www.auxbuss.com/pmwiki/Main/WikiSandbox
> > 
> > Same result on a clean install.
> 
> What's the Markup() rule being used for this function?

Almost the same as yours, but I've now copied yours to ensure that they 
are identical.

  Markup('mrctest', 'directives',
    '/\\(:mrctest:\\)/ie',
    "mrcTest('foo')");

-- 
Cheers,
Marc




More information about the pmwiki-devel mailing list