[pmwiki-users] How to add an image whit local adress ?

John Rankin john.rankin at affinity.co.nz
Tue Mar 8 14:40:04 CST 2005


On Wednesday, 9 March 2005 4:24 AM, Daniel Scheibler <scheibi at gmail.com> wrote:
>Hi Marco,
>
>you can add an image using the "Attach:abc.jpg" markup.
>This solution will display an image that would be uploaded to the
>default upload directory for the group. For Example: Page is
>"Main.HomePage" then the file abc.jpg will stored in
>"/path/to/pmwiki/uploads/Main/abc.jpg".
>
>In this way you have an local solution.
>
>Or do you want an URL like "file://home/marco/images/abc.jpg" ?
>If yes, then use this URL instead of "http://..."
>For WinDoze Server you have to use an URL like
>"file://d:/images/abc.jpg" (with "/" instead of "\" )
>
>greats,
>
>Daniel Scheibler

Alternatively, if you don't want to enable uploads, an
administrator can place images in pub/images/ directory.

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.
-- 
JR
--
John Rankin






More information about the pmwiki-users mailing list