[pmwiki-users] how to post local images

Patrick R. Michaud pmichaud at pobox.com
Thu Dec 1 08:08:37 CST 2005


On Thu, Dec 01, 2005 at 03:56:42PM +0200, Nerijus Krukauskas wrote:
> 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'.

Another solution is to define Pub with

    Pub       $PubDirUrl/../

and then "Pub:images/my-image.jpg" works.  But for that matter 
you could do

    Images    $PubDirUrl/../images/

and then write "Images:my-image.jpg".

Pm




More information about the pmwiki-users mailing list