[pmwiki-users] pagelist pagination

Martin Fick mogulguy at yahoo.com
Wed May 16 19:10:41 CDT 2007


--- "Patrick R. Michaud" <pmichaud at pobox.com> wrote:
> > While it would be less efficient a simple solution
> > might be to limit the count during the template
> > processing instead by simply not counting any
> > iterations that don't produce any output,
> 
> PmWiki doesn't run the markup engine on each
> iteration -- it concatenates all of the iterations 
> together into a single markup string, and then runs 
> the markup engine on the concatenated result.  

Drats, foiled again! :)

What if the templating engine put a special markup
around each iteration like this:

(:iteration:)
...
(:iteration:)
...
(:iterationend:)

This markup would basically mean: "if the section
after this is not blank, increment internal counter
and if the counter is not within the paging range,
delete everything up until the next (:iteration:). 
This would not require any thought on the user's part
in the template, the pagelist count would just
magically work! :)

-Martin



       
____________________________________________________________________________________Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow  



More information about the pmwiki-users mailing list