[pmwiki-users] Marup processing and EnableRelativePageVars

Patrick R. Michaud pmichaud at pobox.com
Wed Sep 12 11:42:56 CDT 2007


On Wed, Sep 12, 2007 at 12:37:19PM -0400, DaveG wrote:
> 
> 
> 
> > It might work to restart processing using PRR(), as in:
> > 
> >   Markup('skidoo_tab_edit', 'directives',
> >          '/\\(:skidoo_tab_edit:\\)/e',
> >          "PRR('<div class="divedit">[[{$FullName}?action=edit |  
> > ]]{$FullName}</div>')"
> >         );
> So far, I'm unable to get this to work -- the variable is not being replaced. I'll continue to play around with it.

Oh, sorry -- I forgot backslashes:

  Markup('skidoo_tab_edit', 'directives',
         '/\\(:skidoo_tab_edit:\\)/e',
         "PRR('<div class="divedit">[[{\$FullName}?action=edit | edit ]]{\$FullName}</div>')"
         );

> >> 2] I'm using the new "$EnableRelativePageVars = 1;" in my config to
> >> get absolute variable references.
> > 
> > You probably want to set things up to work with $EnableRelativePageVars
> > sitewide, as that will be the PmWiki default in 2.2.0.
> That's fine, but I'll still need a way to get back to the 'old' behavior' in some cases. 
> In my case, headers and footers need to refer to the page from which they are included. 
> Would the {*$xxx} format accommodate that? 

Yes, this is the purpose of {*$xxx}.

It does seem that if this is going to be the default, all the old skins 
will need to be updated. 

This doesn't (shouldn't) have any direct impact on skins; at most
it affects some wiki pages provided with skins.  As far as I know,
most of the affected skins on pmwiki.org have already been updated 
to the new behavior -- but feel free to point out any that are not.

Thanks!

Pm



More information about the pmwiki-users mailing list