[pmwiki-users] wiki.d/ sub-sub-directories

Petko Yotov 5ko at free.fr
Sun Jan 21 13:06:19 CST 2007


On Sunday 21 January 2007 17:31, Pm wrote:
> > > My idea was to split the $Group directories inside a directory named by
> > > its' first letter: like:
> > >    Main.HomePage -> wiki.d/M/Main/Main.HomePage
> > >    Site.SomePage -> wiki.d/S/Site/Site.SomePage

> You figured it out exactly -- well done.
>
> FWIW, the standard method I've been using for this is:
>
>     $FmtPV['$Group1'] = '$group{0}';
>     $WikiDir = new PageStore('wiki.d/$Group1/$Group/$FullName');
>
> ("$Group1" here means "first letter of $Group".)
>

Just a note for the list archive : if one has lots of Groups, one may wish to 
also sub-divide the upload directories. It is easily done by setting this in 
config.php:

   $FmtPV['$Group1'] = '$group{0}';
   $WikiDir = new PageStore('wiki.d/$Group1/$Group/$FullName');
   $UploadPrefixFmt = '/$Group1/$Group';

For $UploadPrefixFmt see http://pmwiki.org/wiki/PmWiki/UploadsAdmin .

Petko




More information about the pmwiki-users mailing list