[pmwiki-users] Paging pagelists
pmwiki at 911networks.com
pmwiki at 911networks.com
Tue May 26 13:16:01 CDT 2009
On Tue, 26 May 2009 11:52:35 -0500
Randy Brown <randy at brownragfilms.com> wrote:
> If I understand you correctly, you want to limit the pagelist to 20
> entries, and display the first 5 lines for each entry.
Exactly.
> You should already be able to display the first 5 lines of each
> entry returned in a pagelist by using a local template.
Yes
> 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
> time]] (:ifend:)
> ----
> (:comment show the continuation link:)
> (:if equal "{$?first}" "1":)[[{$FullName}?first=21?last=40|more...]]
> (:elseif equal "{$?first}"
> "21":)[[{$FullName}?first=41?last=60|more...]] (:comment add lines
> like the above up to the maximum number of pages:) (:comment
> or maybe you can calculate the page range using another
> recipe:) (:ifend:)
That's no problem to add 1 line for each 20 scroll, but:
Where do I place this template?
> Hope that helps,
Yes very much so.
--
Thanks
http://www.911networks.com
When the network has to work
More information about the pmwiki-users
mailing list