[pmwiki-users] Sub-dividing page files into sub-folders within each Group folder

V.Krishn vkrishn4 at gmail.com
Tue Dec 20 13:25:50 CST 2011


On Wednesday, December 21, 2011 12:15:35 AM you wrote:
> On Wednesday, December 21, 2011 12:02:17 AM you wrote:
> > On Dec 20, 2011, at 1:01 PM, V.Krishn wrote:
> > > On Tuesday, December 20, 2011 02:53:57 AM Peter Bowers wrote:
> > >>> allows to store pages and file uploads un sub-subfolders, the way I
> > >>> previously described.
> > > 
> > > I am in favour of Pmwiki having atleast a single level subfolder by
> > > default. Preferably,
> > > $WikiDir = new PageStore('wiki.d/{$Group}/{$FullName}');
> > > 
> > > I can think of atleast one application that can be created with this
> > > behaviour enabled by default. i.e Pmwiki as a Reader.
> > > 
> > > It would then be very convenient to send a zipped folder of a Group,
> > > say Group1.zip, to someone. With a web based application/form one
> > > could just upload the file, which can then be viewed by simply
> > > unzipping it in wiki.d. (Not to mention some permission related issues
> > > which may arise)
> > > 
> > > Lets call the zipped file as .pwf (pmwiki format OR portable wiki
> > > format), assuming this extension is still available. :-)
> > > This could well serve as a simple online based document exchange format
> > > that does not require any application installed on client side.
> > > If I am not mistaken, there had been such a discussion sometime back.
> > 
> > While I have no objection to this, like it, and on our site use the above
> > suggested "Group level directories", the mentioned application can of
> > course be achieved with the current default, since even in the
> > wiki.d/$Group subdirectories the files are named $Groupname.$Filename, it
> > is easy enough to write (with tar, since I don't use zip) tar -cf
> > myfile.pmtar wiki.d/$Groupname.*
> 
> 1. Any suggestion on on what convention that would be there for $Groupname.
> Groupname may already exist. What would be untarring command that changes
> all the file names within the tar file?
> 2. Such .pwf file can also contain required cookbook/css ..etc if special
> application is needed to view the file. Any suggestion how to handle this?

On second thought:
For [2] above it might be possible to do using Phar here.
Tar/Zip does allow meta files but I have not tried them, another drawback is 
it needs to be extrated in tmp then moved to appropiate dirs.
Suggestions welcomed.

> 
> >        Vince
> > > 
> > > _______________________________________________
> > > pmwiki-users mailing list
> > > pmwiki-users at pmichaud.com
> > > http://www.pmichaud.com/mailman/listinfo/pmwiki-users

-- 
Regards.
V.Krishn



More information about the pmwiki-users mailing list