[pmwiki-users] Re: Re: What's new replacement for ThisGroup:?
chr at home.se
chr at home.se
Wed Feb 2 15:26:06 CST 2005
On Mon, 10 Jan 2005, Patrick R. Michaud wrote:
> 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';
I added the code snippet above to
http://www.pmwiki.org/wiki/Cookbook/ThisSite
and referred to it from the section 'Links/Page handling'
/Christian
--
Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
More information about the pmwiki-users
mailing list