[pmwiki-users] Paging pagelists

Randy Brown randy at brownragfilms.com
Wed May 27 14:25:08 CDT 2009

This lists up to 100 entries and lets you go to previous, top, or  
next. When it runs out of page segments, it shows the remainder in a  
single page. You can add more markup if you need more page segments.  
You can probably pretty it up, but this should give you an idea of one  
way to do what you want.


(:Toplink: [[{$FullName}?first=1?last=20|Top]]:)
(:comment show the bounded pagelist:)
(:if !equal "{$?first}" "":)
(:pagelist count={$?first}..{$?last}:)
[[{$FullName}?first=1?last=20|Show pagelist, 20 pages at a time]]
(:comment show the continuation link:)
(:if equal "{$?first}" "1":)
Top | [[{$FullName}?first=21?last=40 | next>]]
(:elseif equal "{$?first}" "21":)
[[{$FullName}?first=1?last=20|<previous]] | {$:Toplink} |  
(:elseif equal "{$?first}" "41":)
[[{$FullName}?first=21?last=40|<previous]] | {$:Toplink} |  
(:elseif equal "{$?first}" "61":)
[[{$FullName}?first=41?last=60|<previous]] | {$:Toplink} |  
(:elseif equal "{$?first}" "81":)
[[{$FullName}?first=61?last=80|<previous]] | {$:Toplink} | [[{* 
$FullName}?first=101?last=9999999|View the remainder in one page...]]
(:elseif !equal "{$?first}" "":)
[[{$FullName}?first=61?last=80|<previous]] | {$:Toplink}

On May 27, 2009, at 11:32 AM, pmwiki at 911networks.com wrote:

> On Tue, 26 May 2009 11:52:35 -0500
> Randy Brown <randy at brownragfilms.com> wrote:
>> To limit the number of pages returned by the pagelist, you can do
>> the following if you have the httpvariables recipe installed:
> How do I assign the previous? to go back?
> -- 
> Thanks

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20090527/f055746e/attachment.html 

More information about the pmwiki-users mailing list