[pmwiki-users] Links/Addresses in Wikis (was How to add an image with local adress ?)

Simon s-i-m-o-n at paradise.net.nz
Mon Mar 14 00:46:35 CST 2005


John Rankin wrote:

>
>An author refers to an image in pub/images/ by writing:
>
>    ThisSite:images/someimage.jpg
>
>To achieve this, add the following to local/config.php
>
>    $LinkFunctions["ThisSite:"] = 'LinkIMap';
>    $IMap["ThisSite:"] = $PubDirUrl.'/$1';
>
>This tells pmwiki to recognise 'ThisSite:' references
>and map them to the address of the pub/ directory.
>
>Hope this helps.
>  
>
I have a web site with a mixture of html pages and wiki pages,
with the same look and feel.
It seems to me that
[[/mypage.html|Example]]
should produce a link to
http://somedomain.com/mypage.html
rather than
http://somedomain.com/pmwiki/pmwiki.php/Mypage/Html?action=edit

Rather than having to define the above could we please have some default
markup (eg "/" being the first character
that is relative to the site rather than the wiki

thanks

Simon




More information about the pmwiki-users mailing list