[pmwiki-users] Relative links

Henrik henrik.bechmann at sympatico.ca
Fri Oct 13 08:05:24 CDT 2006


Steve,

You can also do

[[ Path:/news | news page ]]


"Path:" is just a preset empty InterMap entry that forces the "/news" to 
be treated as a relative URL.

- Henrik

Steve Glover wrote:
> Hi,
>
> Is there a mechanism for including relative links in PMWiki? Links 
> inside the wiki are no problem (obviously), and links to external sites 
> are fine, but I've a number of links to non-wiki pages on the same site, 
> and as I've got what's effectively the same site on three different 
> subdomains, it's a pain to have to keep editing the hardcoded URLs every 
> time I move stuff from one to another.
>
> Ideally I'd like to be able to do something like
>
> [[ /news | news page ]] or [[ docs/guide.rtf | user manual ]]
>
> but the wiki doesn't want to play.
>
> Alternatively, if it was possible to do something like
>
> [[ docroot:/news | news page ]]
>
> and have
>
> $DocRoot = "http://whatever.domain.tld";
>
> In the config file?
>
> Thanks,
>
>   

-- 

Henrik Bechmann
www.osscommons.ca
www.bechmannsoftware.com
Webmaster, www.dufferinpark.ca





More information about the pmwiki-users mailing list