[pmwiki-users] how to post local images

Nerijus Krukauskas nkrukauskas at gmail.com
Thu Dec 1 07:56:42 CST 2005


On 01/12/05, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> On Thu, Dec 01, 2005 at 12:28:30PM +0200, Nerijus Krukauskas wrote:
> >   Do we have a markup variable that contains $PubDirUrl? I'd like to
> > use something like this: {$PubDirUrl}/images/my-image.jpg.
>
> You can do it with an InterMap shortcut.  Just add a line like the
> following to local/localmap.txt:
>
>     Pub        $PubDirUrl/
>
> Then you can write Pub:images/my-image.jpg and it'll always be
> relative to $PubDirUrl.

  Great! It works with one minor adjustment:
Pub:../images/my-image.jpg. Another solution would be to move 'image'
directory into 'pub'.

--
http://nk99.org/




More information about the pmwiki-users mailing list