[pmwiki-users] Link to site...
Tegan Dowling
tmdowling at gmail.com
Tue Jan 20 07:26:40 CST 2009
On Mon, Jan 19, 2009 at 9:43 PM, DaveG <pmwiki at solidgone.com> wrote:
> Okay, this should be easy, but I can't find it. I need to create a link
> to the base domain of my site, from within a wiki page. Something like:
> [[{$ScriptUrl} | Link to Root page]]
>
> Has the correct URL, but redirects to target=blank. I'm trying to avoid
> a URL with the Group/Page specifier -- simply the domain name.
I have this in my local.config -- does it do what you want?
// use {$SiteDomain} to get the site's domain name stripped of the
leading "www."
$FmtPV['$SiteDomain'] = "'" . preg_replace('!^\\w+://(www\.)?!', '',
\$ScriptUrl) . "'";
More information about the pmwiki-users
mailing list