[pmwiki-users] wiki.d/ sub-sub-directories
Petko Yotov
5ko at free.fr
Sat Jan 20 23:14:10 CST 2007
Hello All,
I am trying to store the wiki pages in sub-directories. I will have >2800
groups and I read that it is better to have less files/dirs in a directory.
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
So, I was trying this code:
$pagename = ResolvePageName($pagename);
$group = PageVar($pagename, '$Group');
$FmtPV['$G0'] = "'".$group{0}."'";
$WikiDir = new PageStore('wiki.d/{$G0}/$Group/$FullName');
And while it saves the page correctly in /M/Main/ directory, it also saves the
page Site.AllRecentChanges there (instead of in /S/Site/). When I edit the
Site.SideBar, the newly saved SideBar version is only visible from the Site
group.
Is there a way to make this Sub-Sub-Directory relocation work?
Thanks for your help.
Petko
More information about the pmwiki-users
mailing list