[Pmwiki-users] what are the variables to represent group name and page name?
Patrick R. Michaud
pmichaud
Sun Oct 17 11:34:42 CDT 2004
On Sun, Oct 17, 2004 at 01:08:40PM -0400, Robert P. J. Day wrote:
>
> i'm looking at pmwiki 2, in the scripts/ directory, and i'm confused
> by the selection of variable names to represent the current group and
> current page names.
>
> for group, it appears to be the variable $Group, but for page, it
> looks like it's $PageName, kind of inconsistent. for example,
> scripts/print.php contains:
$Group is the page's group (e.g., "Main")
$Name is the page's name (e.g., "WikiSandbox")
$PageName is the page's Group+Name (e.g., "Main.WikiSandbox").
> SDV($GroupPrintHeaderFmt,'[:include $Group.GroupPrintHeader:][:nl:]');
> ^^^^^^
$Group would be substituted with the name of the current group, thus
the result includes the GroupPrintHeader page of the current group.
> and on top of that, the wiki page "ChangesFromPmWiki1" reads, in
> part:
>
> You can write them as [[{$Name}?action=upload | Upload]] and
> ^^^^^ ???
{$Name} gives the name of the current page. One could probably use
{$PageName} just as easily here (the difference would be between
having "WikiSandbox?action=upload" and "Main.WikiSandbox?action=upload").
> [[{$Group}/SideBar?action=edit | Edit menu]].
This becomes the SideBar page of the current group.
Pm
More information about the pmwiki-users
mailing list