ThisFarm

Note: The recipes here are for PmWiki versions 0.6 and 1.0 only. For PmWiki 2.0 recipes, see Cookbook.


Goal

Referencing to a group/page within another field within a wiki-farm.

Solution

If your wiki-farm structure looks like that (from browser's point of view !):

  /baseURLforWiki/ 
    /fieldA/            - wiki data of field A
    /fieldB/            - wiki data of field B
    /pmwiki.1.x.x/      - pmwiki installation

(for other structure the script should be easily customized)

Create a Intermap: enter the following lines into your config.php (or farmconfig.php):

  $LinkPatterns[100]["ThisFarm:($UrlPathPattern)"] = $FmtUrlLink;
  $InterMapUrls['ThisFarm'] = 'baseURLforWiki$1';

Discussion

If your're running a WikiFarm, you can link to other links of the farm including the following code in a page:

  ThisFarm:/fieldname/ - entry group and page
  ThisFarm:/fieldname/?pagename=Group/Pagename - specific group and page 

See Also

  • PmWiki/WikiFarms

History

2004/09/24 first implementation

Comments & Bugs

Contributors

Autor

KAL pmwiki-2.3.33 -- Last modified by {{KAL}}

from IP: 85.171.160.186 ip should be disabled by default for security reasons