[pmwiki-users] pmwiki-2.2.0-beta10 released (pagelist option vars, basename)

Patrick R. Michaud pmichaud at pobox.com
Mon Oct 2 12:21:38 CDT 2006


On Mon, Oct 02, 2006 at 07:06:24AM -0400, The Editor wrote:
> This will be especially useful when you can pass values into
> the pagelist template so you could specify which state to check, or
> which letter of the alphabet.  This saves you from having to have a
> pagelist template for each state or letter.
> 
> You mentioned you might try to add this in somewhere in this round of
> beta's.  I hope it is an easy capability to add.  

Now added in 2.2.0-beta10, just released.  The page variable format
is {$$option} (same as PageListExtension), so that if someone
does the following pagelist directive:

    (:pagelist group=XYZ fruit=apple:)

then the option parameter values are available inside the 
pagelist template as {$$group} and {$$fruit}.

Also, while I'm on the topic, the changes to the handling of 
page variables has also necessitated a change to {$PageCount}, 
{$GroupCount}, and {$GroupPageCount}, as they interfere with
the relative page variable handling.  So, the new versions are
now {$$PageCount}, {$$GroupCount}, and {$$GroupPageCount},
and this adds a nice consistency of being "meta pagevariables"
like the {$$option} ones.

Pm




More information about the pmwiki-users mailing list