[pmwiki-devel] page text variables across groups with Attach:

John Rankin john.rankin at affinity.co.nz
Wed Dec 15 15:11:20 CST 2010


The following page text variable is on GroupA.Page1:

(:graphic: Attach:an-image.png :)

On GroupB.Page2, we have a custom directive (:bookmetadata 
GroupA.Page1:) that generates a table of metadata names and values, 
including:

|| graphic||{GroupA.Page1$:graphic} ||

This produces a link to uploads/GroupB/an-image.png, whereas we would 
like it to produce a link to uploads/GroupA/an-image.png. The code works 
correctly if the (:bookmetadata:) directive is on GroupA.Page2 -- the 
problem arises when we retrieve the graphic PTV from a different group.

Is there a way, preferably easy, to do this?

JR

-- 
John Rankin





More information about the pmwiki-devel mailing list