[pmwiki-users] Paging pagelists

Randy Brown randy at brownragfilms.com
Tue May 26 11:52:35 CDT 2009

If I understand you correctly, you want to limit the pagelist to 20  
entries, and display the first 5 lines for each entry.

You should already be able to display the first 5 lines of each entry  
returned in a pagelist by using a local template.

To limit the number of pages returned by the pagelist, you can do the  
following if you have the httpvariables recipe installed:

(:comment show the bounded pagelist:)
(:if !equal "{$?first}" "":)(:pagelist count={$?first}..{$?last}:)
(:else:)[[{$FullName}?first=1?last=20|Show pagelist, 20 pages at a  
(:comment show the continuation link:)
(:if equal "{$?first}" "1":)[[{$FullName}?first=21?last=40|more...]]
(:elseif equal "{$?first}" "21":)[[{$FullName}?first=41?last=60| 
(:comment add lines like the above up to the maximum number of pages:)
(:comment 	or maybe you can calculate the page range using another  

Hope that helps,


On May 26, 2009, at 10:59 AM, pmwiki at 911networks.com wrote:
> I'm looking for a simple way of doing a paging every 20 entries. No
> conditional. I only want to display the first 5 lines so users can
> evaluate the wiki page.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20090526/9ccd97ed/attachment-0001.html 

More information about the pmwiki-users mailing list