[pmwiki-users] Page listing with PTV and name

Peter Bowers pbowers at pobox.com
Mon Feb 21 14:14:01 CST 2011

On Mon, Feb 21, 2011 at 2:01 PM, tkcusr <tkcusr at yahoo.com> wrote:
> I'm trying to get a list of pages whose names match a certain PTV in that
> page.
> e.g. if the page is named PgName, and it has a PTV defined like
> (:myptv:PgName:) then I want it listed.

I'm not 100% sure I understand what you are looking for...

If in this case:

PageA contains (:myptv:PageA:)
PageB contains (:myptv:PageB:)
PageC contains (:myptv:SomeNonMatchingValue:)

If you are looking to get a pagelist that will include PageA and PageB
but not PageC then this should work:

(:pagelist if="equal {=$Name} {=$:myptv}":)

If I've misunderstood your requirements, my apologies.  Perhaps a more
detailed explanation?


More information about the pmwiki-users mailing list