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


_______________________________________________
pmwiki-devel mailing list
pmwiki-devel@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-devel

Reply via email to