There is a useful recipe
<div><a href="http://www.pmwiki.org/wiki/Cookbook/SharedPages-Talk">http://www.pmwiki.org/wiki/Cookbook/SharedPages</a></div><div><br></div><div>that I am trying to use so I can share some pages between my intranet, and my external website.</div>
<div><br></div><div>In config.php I have</div><div><div> $WikiDir = new PageStore('wiki.d/$Group/$FullName');</div><div> $LockFile = "/home/tahi/public_html/pmwiki/wikishared.d/.flock";</div><div> $WikiLibDirs = array(</div>
<div> &$WikiDir,</div><div> new PageStore('/home/tahi/public_html/pmwiki/wikishared.d/$Group/$FullName', 1),</div><div> new PageStore('$FarmD/wikilib.d/$FullName'));</div><div><br></div><div>
<br></div><div>What I want to achieve is having some shared groups of pages that can be updated and added to (ie new pages) from both websites.</div><div>Where a group is not in the shared directory I want it to update the local website folder (this happens now).</div>
<div><br></div><div>My understanding of the above (its not on the page, but I will add it if I am right),</div><div>is that existing pages are updated in their existing locations, but new pages are added in to local folder.</div>
<div>This is because of the ordering of the WikiLibDirs array.</div><div><br></div><div>Now there is a separate thread about page stores etc, </div><div>perhaps that discussion could be expanded encompass the use of multiple stores,</div>
<div>and shared uploads directories as well, </div><div>with the capability to work on a group basis.</div><div><br></div><div>If anyone can suggest how I can have all new pages in a shared group only be added the the shared directory I would appreciate it</div>
<div><br></div><div>thanks</div><div><br></div></div><div><br></div><div>Simon</div><div><br></div><div>A corollorry questions</div><div><br></div><div>I can test for a pagename in config.php by using $pagename = ResolvePageName($pagename);</div>
<div>How can I test for a groupname in config.php?</div>