[pmwiki-users] Marup processing and EnableRelativePageVars

DaveG pmwiki at solidgone.com
Wed Sep 12 11:37:19 CDT 2007




> 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.


>> 2] I'm using the new "$EnableRelativePageVars = 1;" in my config to
>> get absolute variable references.
> 
> Actually, $EnableRelativePageVars = 1 gives "relative page references"
> -- i.e., {$FullName} is relative to the page in which it is written,
> instead of the page on which it is displayed.
I think my terminology is incorrect. I'm using it to get a variable to refer to the page on which it is written as you describe.

>> In this case though I only need absolute references on a specific
>> page, not site wide. Is there a way to apply this setting to a
>> specific page, or usage instance?
> 
> 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? It does seem that if this is going to be the default, all the old skins will need to be updated. 


 ~ ~ David




More information about the pmwiki-users mailing list