[pmwiki-users] Pagelist conditionals

Crisses crisses at kinhost.org
Mon Feb 19 09:36:23 CST 2007


I'm working on a blog listing, and I'd like to include the first ten  
posts, then under it have "Older News..." and have it continue to  
list the rest of the blog postings under it.  I'm using "blog with  
pagelist" which works OK except when I want listings 11+ different  
than 1-10.

In the pagelist template, I can explicitly match {$$PageCount} 1-10  
with a conditional, but I can't really do 11-infinity.  I guess I  
could do 11-20 then put a "list all" link to a search criteria....

Is there a way to do greater than or less than for conditionals?   
This is awkward:

(:if [ equal {$$PageCount} "1" ||  equal {$$PageCount} "2" ||  equal  
{$$PageCount} "3" ||  equal {$$PageCount} "4" ||  equal {$$PageCount}  
"5" ||  equal {$$PageCount} "6" ||  equal {$$PageCount} "7" ||  equal  
{$$PageCount} "8" ||  equal {$$PageCount} "9" ||  equal {$$PageCount}  
"10" ] :)!!![[{=$FullName}|[+{=$Title}+]]]
(:include {=$FullName}:)(:ifend:)

But it's do-able.

Since there's no else, and there's no greater-than check, and the  
regex can only be used on pagenames.... I'm stuck at that point  
unless I do a similar (:if:) for 11-20 and not list 21+ explicitly  
(this might be WISE, because eventually there may be hundreds of  
pages in the blog...but it's a case where it does make this awkward).

So far, this is pure PmWiki -- no recipes.

Anyone have a clue? :)

Crisses
----
well you got me working so hard lately, working my hands until they  
bleed,
if i was twice the man i could be, i'd still be half of what you need.
still you lead me and i follow -- anything you ask you know i'll do.
but this one act of consecration is what i ask of you --
(ringfinger) promise carved in stone, deeper than the sea.
(ringfinger) sever flesh and bone and offer it to me
  -- Nine Inch Nails, Ringfinger.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20070219/8a4a446f/attachment.html 


More information about the pmwiki-users mailing list