Download the PHP package wernerkrauss/folderperpage without Composer
On this page you can find all versions of the php package wernerkrauss/folderperpage. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wernerkrauss/folderperpage
More information about wernerkrauss/folderperpage
Files in wernerkrauss/folderperpage
Package folderperpage
Short Description An extension for automatically creating a folder per page
License MIT
Informations about the package folderperpage
silverstripe-folderperpage
Extension that creates a folder per page or dataobject
Requirements
for SS3 compatible versions see SS3 branch
Installation
Download and install manually or use composer.
Make sure you add the extension to the classes you want to decorate. Add this to your config.yml to add it to all Pages:
Configuration
You can exclude several page types. Just use the RootFolder.ignored_classes config value. The module's config.yml has some default values to get you started:
Of course every decorated class can have a seperate folder root, e.g. "Articles" for all pages and "News" for a news data object. Just add the folder_root config to your object.
Update your forms
You can use to set the upload folder.
Given you have a has_one relation "Avatar" => "Image" you can add the folder to the UploadField:
TODO
make it work for other dataobjectsunit tests- add function that automatically updates all UploadFields and BulkUploads to use this folder in a form
- add support for subsites module, e.g. a master root per subsite
- task for updating / checking all existing pages
check if page is moved- should it move the rootfolder automatically or by switch? May be a timeout problem with very large trees
All versions of folderperpage with dependencies
silverstripe/cms Version 3.*
composer/installers Version *