[pmwiki-users] custom wikilib.d?

Tegan Dowling tmdowling at gmail.com
Fri Nov 30 13:17:34 CST 2007


On Nov 30, 2007 1:08 PM, Patrick R. Michaud <pmichaud at pobox.com> wrote:
>
> On Fri, Nov 30, 2007 at 12:31:14PM -0600, Tegan Dowling wrote:
> > I am not quite sure how to read
> > http://www.pmwiki.org/wiki/PmWiki/PathVariables#WikiLibDirs (or
> > rather, I don't know the proper syntax for arrays); I want to have the
> > usual wikilib.d, with its standard downloaded content.  I'd like to
> > have another, similar directory, maybe wikilib2.d (?) of my own
> > content that would over-ride any similarly named pages in wikilib.d,
> > and then of course I'd want any in-wiki edits to generate the normal,
> > over-riding wiki.d files.
> >
> > I think this should be simple, right?  I'll add it to the page
> > http://www.pmwiki.org/wiki/PmWiki/PathVariables#WikiLibDirs if someone
> > will provide the actual php stuff, please?
>
>     $WikiLibDirs = array(&$WikiDir,
>         new PageStore('wikilib2.d/{$FullName}'),
>         new PageStore('$FarmD/wikilib.d/{$FullName}'));
>
> Do this early in the configuration.

Added as an example to that page -- Thank you, Patrick!

Tegan



More information about the pmwiki-users mailing list