[pmwiki-users] Search accross Fields

Patrick R. Michaud pmichaud at pobox.com
Thu Mar 2 23:27:16 CST 2006

On Thu, Mar 02, 2006 at 04:39:54PM -0700, Bellave Jayaram wrote:
> Are you saying that there is a link from the special field to each of the
> other fields as in wiki.d/ of the special field contains links such as
> wiki1.d -> ../field1/wiki.d, wiki2.d -> ../field2/wiki.d etc. or something
> else.
> Also, is it possible to make the search work across fields that have Shared
> writable pages as explained on
> http://www.pmwiki.org/wiki/Cookbook/SharedPages

I'm basically saying to go overboard with shared pages -- create a special
field that shares (read-only) all of the pages of the other fields.  
In the special field's local/config.php, set

    $WikiLibDirs = array(
      new PageStore('$FarmD/shared.d/$FullName', 1),
      new PageStore('../field1/wiki.d/$FullName'),
      new PageStore('../field2/wiki.d/$FullName'),
      new PageStore('../field3/wiki.d/$FullName'),
      new PageStore('$FarmD/wikilib.d/$FullName'));

This special field will then use all of the pages from all of
the other fields for its searches.  Essentially it's like throwing
all of the pages together into a single wiki.

If two or more fields have pages of the same name, then 
the special field will only see one of them (the one from the 
field that appears earliest in the above list).


More information about the pmwiki-users mailing list