[pmwiki-users] pagelist template brainstorming

Patrick R. Michaud pmichaud at pobox.com
Mon Feb 19 15:21:26 CST 2007


On Mon, Feb 19, 2007 at 07:08:22PM +0000, Hans wrote:
> Monday, February 19, 2007, 3:43:04 PM, Patrick wrote:
> 
> > Originally proposed:
> >    (:first:)  
> >    (:each:)  
> >    (:last:)
> >    (:first {=$Group}:)  
> >    (:last {=$Group}:)
> >    (:nopages:)   or  (:notfound:)
> 
> I prefer this over all the other proposals.
> 
> (:firstpage:) is confusing because it comes before the first page,
> etc. for (:lastpage:)

(:firstpage:) doesn't _have_ to come before the first page.  

(:firstpage:) simply says "output the markup that follows when we're 
on the first page in the list".  If a (:firstpage:) section
appears in the template after an (:eachpage:) section, then
the markup for firstpage would come after the eachpage markup
(i.e., would appear to come "after the first page").

Again, I don't expect many template designers to make direct
use of this feature, but it will be allowed.

Pm



More information about the pmwiki-users mailing list