[pmwiki-users] Doing Pagelist includes only when include exists?

Patrick R. Michaud pmichaud at pobox.com
Thu Jul 5 15:53:59 CDT 2007


On Wed, Jun 20, 2007 at 01:45:30PM -0400, Ben Wilson wrote:
> I'm trying to do a pagelist based on sections of other pages (e.g.
> Page#from#to). However, sometimes the #from#to is empty. How would I
> ignore those pages?

The PmWiki.FAQ page does this by only using pages that contain the 
anchors.  For example, the pagelist directive can do

   (:pagelist "[[#from]]" "[[#to]]" ... :)

and only those pages that contain both "[[#from]]" and "[[#to]]"
as anchors will be included in the resulting list.

Pm



More information about the pmwiki-users mailing list