[pmwiki-devel] FPLTemplate() Revision

Hans design5 at softflow.co.uk
Tue Feb 17 11:07:04 CST 2009


Tuesday, February 17, 2009, 4:58:22 PM, Hans wrote:

> To get a continuous index number one needs another var, perhaps call
> it {$$IndexCount}.
> This is initialized as
>      $indexcount = $opt['start']-1;
> and then incrementally increased like $pagecount in the page loop.

Correction: $indexcount needs to be initialiized as

        if($opt['start']) $indexcount = $opt['start']-1;
        else $indexcount = $opt['count']-1;

to take care of both cases with or without a start= value

Hans




More information about the pmwiki-devel mailing list