[pmwiki-users] ExternMap?

Christophe David pmwiki at christophedavid.org
Thu Feb 2 04:25:48 CST 2006


>
> It does not exist already in the 2.1.betas, nor is it likely for 2.1.0.
> However, mapping a word to an external address can be easily done using
> custom markup:
>
>     Markup('example_word', '>links',
>       '/\\bexample_word\\b/',
>       "<a href='http://www.example.com'>example_word</a>");



Thank you for your support.  Unfortunately, this is not exactly what I am
looking for.

What I am looking for is a simple way (and Site.Intermap would be perfect
for that) to specify the "url prefix" of a server where images are stored.
Typically, I have PmWiki fields created for several users, but they are not
allowed to upload files on the machine running the wiki.

Therefore, the users store their images on another server where the url is,
say,  http://www.userisp.com/username/images/ .

Currently, they have to type
http://www.userisp.com/username/images/imagename.jpg for every image.

I would like to have something like ISP:imagename.jpg or {ISP}imagename.jpg
, as it would be easier to type, and easier to change if they decide to
store their images somewhere else.

I tried "Custom markups" which work for this up a certain point : I did not
manage to let them work in links like [[ (:markup:)zipfile.zip
|(:markup:)imagename.jpg]] .

Would you see another way of doing it ?

Christophe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20060202/2697ed71/attachment.html 


More information about the pmwiki-users mailing list