[Pmwiki-users] Re: What's new replacement for ThisGroup:?
Patrick R. Michaud
pmichaud
Mon Jan 10 10:37:59 CST 2005
On Mon, Jan 10, 2005 at 01:58:08PM +0100, chr at home.se wrote:
> But what if I really want to go to a URI that's relative this site? Right
> now I have this markup:
> [[ThisSite:/pub/wiki/pmwiki.php/SMCv1/SMCv1 |"SMCv1" wiki]]
> that goes to a "public" wiki.
Define a local intermap link that does exactly what you want, including
"ThisSite" if that's the best option. Even in v1 the ThisSite: and
other links were simply InterMap links.
To do it programmatically:
$LinkFunctions['ThisSite:'] = 'LinkIMap';
$IMap['ThisSite:'] = 'http://' . $_SERVER['HTTP_HOST'] . '$1';
$LinkFunctions['ThisWiki:'] = 'LinkIMap';
$IMap['ThisWiki:'] = $ScriptUrl . '$1';
Pm
More information about the pmwiki-users
mailing list