[Pmwiki-users] Local Site Shortcut

Dave Jackson dave.jackson
Thu Oct 9 08:01:11 CDT 2003


Sorry if I wasn't very clear, I did look in scripts/thiswiki.php, which
is where my clearly feeble attempt came from :)
I have now got this in my local.php:

$SiteUrl = 'http://'.$HTTP_SERVER_VARS['HTTP_HOST'];
$LinkPatterns[400]["\\bThisSite:($UrlPathPattern)"] = $FmtUrlLink;
$InterMapUrls['ThisSite'] = $SiteUrl."/wiki/";

Which means I can use [[ThisSite:WordDocs/WordFile.doc Here is the word
file]] and transfer it from box to box willy nilly.

Thanks Patrick!

David Jackson 

-----Original Message-----
From: Patrick R. Michaud [mailto:pmichaud at pobox.com] 
Sent: 09 October 2003 13:50
To: Dave Jackson
Cc: Pmwiki-users at pmichaud.com
Subject: Re: [Pmwiki-users] Local Site Shortcut

On Thu, Oct 09, 2003 at 11:43:54AM +0100, Dave Jackson wrote:
> I've had a look, and tried adding the following to local.php: $SiteUrl

> = 'http://'.$HTTP_SERVER_VARS['HTTP_HOST'];
> $InterMapUrls['ThisSite'] = $SiteUrl;


  $SiteUrl = 'http://'.$HTTP_SERVER_VARS['HTTP_HOST'];
  $LinkPatterns[400]["\\bThisSite:($UrlPathPattern)"] = $FmtUrlLink;
  $InterMapUrls['ThisSite'] = $SiteUrl;

You might also look at scripts/thiswiki.php to see how it's done for
ThisWiki:, ThisGroup:, etc.


More information about the pmwiki-users mailing list