[pmwiki-users] clean URLs for wikifarm in subdirectory
Patrick R. Michaud
pmichaud at pobox.com
Wed Mar 16 02:08:51 CST 2005
On Tue, Mar 15, 2005 at 10:45:27PM -0500, Grorge J. De Bruin wrote:
>
> What is needed is a way to use something like
> $BaseUrl in the actual pages that are are being
> written. For example, look at one of the pages in
> my Gallery section:
> http://www.soundchasers.com/index.php?n=Gallery.CountrysideAnimals
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:
Gallery:Animals_of_the_Countryside/thumb-Animals_of_the_Countryside_01a.jpg
Gallery:Animals_of_the_Countryside/thumb-Animals_of_the_Countryside_02a.jpg
Gallery:Animals_of_the_Countryside/thumb-Animals_of_the_Countryside_03a.jpg
On your local system, you would probably define local/localmap.txt with:
Gallery http://localhost/uploads/Gallery/$1
and the same markup would result in links to localhost instead of
soundchasers.com.
> To make things a little more complicated: I
> couldn't figure out a way to get an image to link
> to another wiki page. Personally, if it were
> possible to do something like:
>
> [[Gallery.AoC01 |
> {$BaseUrl}/uploads/Gallery/Animals_of_the_Countryside/thumb-Animals_of_the_Countryside_01a.jpg]]
It is possible to do something like this, or at least it is
if you use either a real http:// url or an intermap link as I've
described above.
[[Gallery.AoC01 | Gallery:escher_tux.jpg]]
Pm
More information about the pmwiki-users
mailing list