01170: {$Name} and {$Group} do not contain name/group of actual page

Summary: {$Name} and {$Group} do not contain name/group of actual page
Created: 2010-02-11 02:28
Status: Closed - documentation updated
Category: Documentation
From: Klonk
Assigned:
Priority: 5
Version: 2.2.10
OS:

Description: The variables {$Name} and {$Group} only contain the correct pagename/group when located within that page. If {$Name} and/or {$Group} are located e.g. in the Main.SideBar page they always point to page Main.Sidebar i.e. Main no matter what page is viewable at the main text area (e.g. Profiles/Klonk)

This is not a bug. Try {*$Name} and {*$Group}. See $EnableRelativePageVars. (Not sure where this is documented on pmwiki.org? doesn't show up any good explanatory pages when googling... http://www.mail-archive.com/pmwiki-users@pmichaud.com/msg18981.html with related thread has some info - Someone (I know, should be me...) should probably move it into a page somwhere...) Peter Bowers February 11, 2010, at 02:55 AM

Please read PmWiki.ReleaseNotes every time when you upgrade (if you have a minute), for all releases since your previous version. You can also subscribe to the pmwiki-announce mailing list which is used for such important messages.

To revert to the previous default, please add to config.php this line:
$EnableRelativePageVars = 0;
Thanks. --Petko February 11, 2010, at 05:20 AM

Special references are documented at PageVariables#specialreferences. simon February 11, 2010, at 04:08 PM