[pmwiki-users] dividing pagelist results into seperate pages

Patrick R. Michaud pmichaud at pobox.com
Wed Feb 1 16:23:39 CST 2006


On Wed, Feb 01, 2006 at 09:35:55AM -0700, Philip Stitt wrote:
>    Is there a way to customize the 'pagelist" command so that it will divide
>    the results into different pages, limiting the number of results (say, 50
>    results) per page. So if you had 200 pages, it would divide the list into
>    4 different pages, with 50 results on each page. Sort of like the 'count"
>    directive, but the results would 'spill over" to another page  (I'm
>    thinking of this as a sitemap solution).

We could add a 'start=' parameter, so that

     (:pagelist start=101 count=50:)

will display results 101 through 150.  Or, more to the point, adding
?start=101 to the current url would redisplay the current pagelist
starting at 101 instead of 1.  Then it's just a matter of being
able to generate the correct "next" url using something like
"{$PageUrl}?start={$PageCount}".

Pm




More information about the pmwiki-users mailing list