[pmwiki-users] Marup processing and EnableRelativePageVars
Patrick R. Michaud
pmichaud at pobox.com
Wed Sep 12 14:11:04 CDT 2007
On Wed, Sep 12, 2007 at 01:08:23PM -0400, DaveG wrote:
> > Oh, sorry -- I forgot backslashes:
> >
> > Markup('skidoo_tab_edit', 'directives',
> > '/\\(:skidoo_tab_edit:\\)/e',
> > "PRR('<div class="divedit">[[{\$FullName}?action=edit | edit
> > ]]{\$FullName}</div>')"
> > );
> The variable is now replaced, but does not reference the page on
> which the variable is located -- it acts under the old method. If
> I simply place ($FullName} within the page, I get a reference to
> the 'included' page, but when it's part of the markup the
> replacement refers to the current page, not the page on which
> the variable is used.
Correct. By the time the (:skidoo_tab_edit:) markup is
processed, PmWiki has already included the text of the included
page into the current text (and converted any references).
PmWiki doesn't have any way of knowing that the {$FullName}
resulting from the (:skidoo_tab_edit:) markup is coming
from an included page.
Pm
More information about the pmwiki-users
mailing list