Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Configuration for the HasManyFileManager extension/module
- * Make sure the beginning of the rewrite rule matches your folder name.
- * Example: if you installed the HasManyFileManager Module in a folder named
- * "filemanager" the rule below MUST start with this foldername.
- *
- * If you intend to change the filemanager directory name to something else, be sure
- * to change the references in AttachedFile as well!
- */
- Director::addRules(100, array(
- 'filemanager/$Action/$Class/$ID/$ImageField/$Group/$ItemID' => 'AttachedFile_Uploader'
- ));
- // decorate File with AttachedFile
- DataObject::add_extension('File', 'AttachedFile');
- DataObject::add_extension('SiteTree', 'SiteTreeFileHandler');
- DataObject::add_extension('LeftAndMain', 'CustomScriptInit');
- ?>
Add Comment
Please, Sign In to add comment