[pmwiki-users] Link "last news" automatically

Hans design5 at softflow.co.uk
Fri May 14 02:00:30 CDT 2010

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 {=$FullName} quiet=1:)

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.


More information about the pmwiki-users mailing list