[pmwiki-users] PageUrl
Patrick R. Michaud
pmichaud at pobox.com
Mon Sep 11 12:55:47 CDT 2006
On Mon, Sep 11, 2006 at 12:49:10PM -0400, The Editor wrote:
> I'm trying to extract the current page's url so it could be sent in an
> email with forum posts. I've tried the following with no luck... The
> page variable is just blank.
>
> global $WorkDir, $WikiDir, $pagename...
> if ($field == "linkpage") $_POST['linkpage'] = $PageUrl . $_POST['linkpage'];
$url = PageVar($pagename, '$PageUrl');
(Keep in mind that $PageUrl isn't a global variable, it's
a page variable -- i.e., the value of {$PageUrl} depends
on whatever page you happen to be talking about, which isn't
always the current one.)
Pm
More information about the pmwiki-users
mailing list