On Mon, Jan 19, 2009 at 9:43 PM, DaveG <[email protected]> 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) . "'";
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users