[pmwiki-users] Relative Directory Addressing

Patrick R. Michaud pmichaud at pobox.com
Mon Jul 4 11:32:54 CDT 2005


On Mon, Jul 04, 2005 at 09:44:34AM -0400, Henrik Bechmann wrote:
> I'm almost ready to deploy my first wiki field.
> 
> One more detail: Something I may be missing:
> 
> I'd like to embed a picture in a page using relative directory 
> addressing, so instead of
> 
> http://mydomain/mypictures/somesubject/picture.jpg
> 
> I'd like to do (up one from the current directory, then down into the 
> somesubject directory:)
> 
> ../somesubject/picture.jpg

Try using a intermap link...in local/farmmap.txt, add the line

    mypictures      /mydomain/mypictures/

then in your markup you can do:

    mypictures:somesubject/picture.jpg

and it will be translated into

    <img rel='/mydomain/mypictures/somesubject/picture.jpg' />

Pm



More information about the pmwiki-users mailing list