[pmwiki-users] New PageListExtensions Recipe
Martin Fick
mogulguy at yahoo.com
Fri Jun 16 01:37:27 CDT 2006
I finally implemented as a recipe a series of
extensions to pagelists that I have been wanting for a
while now: Cookbook/PageListExtensions
This recipe defines these new pagelist options:
groupcount to specify how many groups to
iterate through
pergroupcount to specify how many pages per group
to iterate through
blank to specify a page to include if the
pagelist is blank
Note: the new {$$option} (see below) markup is
available inside the blank page.
This recipe also defines these new pagelist variables:
{$PageTotal} the number of pages that would have
been returned without a count,
groupcount, or pergroupcount
{$GroupTotal} the number of groups that would have
been returned without a count,
groupcount, or pergroupcount
Finally, this recipe defines a special markup
{$$option}. This new markup makes the options used in
the pagelist directive available inside of pagelist
templates. The special case {$$} returns the entire
option string. Some examples:
{$$count} displays the value of the count option
A custom option:
(:pagelist lyric='Hello My Darling' ...:)
{$$lyric} displays Hello My Darling
There is also a live example of this recipe here:
http://www.theficks.name/test/PageListExtensions/pmwiki.php?n=Test.PageListOption
As always, feedback highly encouraged,
-Martin
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the pmwiki-users
mailing list