[pmwiki-users] Re: Re: Using relative links and images in url markup

chr at home.se chr at home.se
Mon May 23 00:50:48 CDT 2005

On Sun, 22 May 2005, Radu wrote:

> Since (if using clean URLs), authors see stuff like
> http://path.to/pmwiki/Group/Page, and [[./something.jpg]] would seem to
> be relative to a directory called Page under Group, under the pmwiki
> directory.

I'd instead assume that if I'm looking at the page


then [[./something.jpg]] should refer to 


This is of course most likely bogus, as there will probably be no such 
directory... Anyway, just wanted to explain how I'd interpret 

I think it'd be better coming up with good prefix names... so if we're
using e.g. http://site.org/wiki/Group/Page, where pmwiki.php is located at
http://site.org/wiki/pmwiki.php, we might like something like this:

* wiki:	The directory that pmwiki.php resides in, i.e.
	'/wiki/' or 'http://site.org/wiki/'
* root:	The root of the web server, i.e.  '/' or 'http://site.org/'.
* host:	Abslute URI of web server, i.e. 'http://site.org'
* field: The directory of the current field


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

More information about the pmwiki-users mailing list