Guest User

Untitled

a guest
Jun 19th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. <?php
  2. /**
  3. * Configuration for the HasManyFileManager extension/module
  4. * Make sure the beginning of the rewrite rule matches your folder name.
  5. * Example: if you installed the HasManyFileManager Module in a folder named
  6. * "filemanager" the rule below MUST start with this foldername.
  7. *
  8. * If you intend to change the filemanager directory name to something else, be sure
  9. * to change the references in AttachedFile as well!
  10. */
  11. Director::addRules(100, array(
  12. 'filemanager/$Action/$Class/$ID/$ImageField/$Group/$ItemID' => 'AttachedFile_Uploader'
  13. ));
  14.  
  15. // decorate File with AttachedFile
  16. DataObject::add_extension('File', 'AttachedFile');
  17. DataObject::add_extension('SiteTree', 'SiteTreeFileHandler');
  18. DataObject::add_extension('LeftAndMain', 'CustomScriptInit');
  19.  
  20. ?>
Add Comment
Please, Sign In to add comment