[pmwiki-users] Relative links

Henrik henrik.bechmann at sympatico.ca
Fri Oct 13 05:52:27 CDT 2006


Steve,

I use InterMap entries, but with just one domain. Might work depending 
on your setup....

In Site.InterMap:

[@
HTMLdocs:	/from/domain/public_html/

...

@]

eg:

AboutUs-HTMLdocs:	/aboutus/


In markup:

[[HTMLdocs:mypage.html | My old HTML page]]

Essentially the InterMap entry right side is substituted for the left 
side and completed as a relative url.

See http://pmwiki.org/wiki/PmWiki/CustomInterMap, 
http://pmwiki.org/wiki/PmWiki/InterMap, and 
http://www.pmwiki.org/wiki/Cookbook/RelativeUrls

Hope this helps.

- 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