[pmwiki-users] Variables in localmap.txt (Was: clean URLs for wikifarm in

chr at home.se chr at home.se
Wed Mar 16 04:04:06 CST 2005


On Wed, 16 Mar 2005, Patrick R. Michaud wrote:

> This is a case where it looks like some custom intermap links
> would be very useful.  For example, if you add the following line
> to local/localmap.txt:
> 
>    Gallery      http://www.soundchasers.com/uploads/Gallery/$1
> 
> then each of your images becomes markup like:

This reminded me... I think it'd be very useful if localmap.txt etc could
contain variables. The reason is that I have quite a few lines in my
localmap.txt, and when I wish to test it in another location, I have to
change *all* the lines manually...

In the example above, we might imagine having this instead:

	Gallery		{$ThisSite}/uploads/Gallery/$1

or

	Gallery		${ThisSite}/uploads/Gallery/$1

depending on what syntax flavour you prefer...

/Christian

-- 
Christian Ridderström, +46-8-768 39 44               http://www.md.kth.se/~chr





More information about the pmwiki-users mailing list