Friday, May 14, 2010, 12:45:13 AM, Francesco Sblendorio wrote:
> (:pagelist trail=News/News fmt=#redirect count=1 order=-ctime:)
> (:if false:)
> [[#redirect]]
> (:template first:)
> (:redirect {=$FullName} quiet=1:)
> (:template each:)
> [[#redirectend]]
> (:ifend:)
you could shorten this to:
(:pagelist trail=News/News fmt=#redirect order=-ctime:)
(:if false:)
[[#redirect]]
(:redirect {=$FullName} quiet=1:)
[[#redirectend]]
(:ifend:)
There is no need for the count= parameter and the (:template :)
directives, since the first name onn the list (ordered by order=...)
will be use din the (:redirect :) directive, and processing of the
pagelist output stops there, because it is a redirection.
~Hans
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users