[pmwiki-users] Redirect to pagelist result page if only 1 result

Patrick R. Michaud pmichaud at pobox.com
Thu Aug 14 04:49:51 CDT 2008

On Tue, Aug 05, 2008 at 01:06:03PM -0500, Randy Brown wrote:
> A while back Pm proposed a way of enabling searches that return only  
> one page to automatically redirect to that page. Has that  
> functionality been added yet?

Now added in pmwiki-2.2.0-beta68 (just released).  To make
this work one has to add the following to a pagelist template
where the "jump to a page" functionality is desired:

    (:template last:)
    (:if equal {$$PageCount} 1:)(:redirect {=$FullName}:)(:if:)


More information about the pmwiki-users mailing list