Forums / Cotonti / General / PFS subfolders

GHengeveld
#23964 2010-04-04 18:34
None at the moment, sorry.
If you're any good with PHP you can try implementing subfolders in the existing PFS. You'll need to add a column in the sed_pfs_folders DB table named pff_parentid (or something similar). Then modify the PFS core to show an 'add folder' form even when inside a folder. This form should contain a hidden field with the current folder ID as its value. In the PHP you can process this form like a normal 'add folder' but you'll have to include the hidden field's value an set it as the pff_parentid.
Then finally you'll have to edit the PFS core so in root it only shows folders without a parentid (or parentid = 0) and show subfolders when inside a folder (WHERE pff_parentid = $currentfolderid).