Jump to:

7939 Posts in 1472 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Preview: DataObjectManager module

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
Go to End
Author Topic: 58277 Views
  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: DataObjectManager module Link to this post

    I've just checked in a fix that will respect the "upload" permission.

    $manager->setPermissions(array('add','edit','delete'));

    Will disable the upload features in the popup.

  • Amir Mostofi
    Avatar
    Community Member
    59 Posts

    Re: Preview: DataObjectManager module Link to this post

    UncleCheese, how's "$manager->setPermissions(array('add','edit','delete'));" supposed to work?

    When I add that, it completely removes the Add Object(s) button so you cannot add any objects at all. I do not get any pop up anymore. I want to be able to import from an existing folder, just not upload from the computer using SWFUpload.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: DataObjectManager module Link to this post

    Are you sure you updated your SVN? Make sure your FileDataObjectManager.ss has <% if Can(add) %> wrapped around that button and not <% if Can(upload) %>

  • Amir Mostofi
    Avatar
    Community Member
    59 Posts

    Re: Preview: DataObjectManager module Link to this post

    I was using the latest version (r117), but FileDataObjectManager.ss still had <% if Can(upload) %> in the code. As soon as I changed it to <% if Can(add) %> it worked. Thanks!

    The Add Object(s) title at the top of the pop up has disappeared through. All you see, is "import from an existing folder" with the file tree menu underneath. How can I restore the title bar in the pop up?

  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: DataObjectManager module Link to this post

    Sorry, my bad. I hadn't committed. Please undo your changes and check out the latest version (should be two updates to templates).

  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: DataObjectManager module Link to this post

    Okay, i've put the header back in.

  • Amir Mostofi
    Avatar
    Community Member
    59 Posts

    Re: Preview: DataObjectManager module Link to this post

    Thank you! All working fine.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: DataObjectManager module Link to this post

    DataObjectManager users -- be advised. The "examples" directory has been removed from SVN. I was receiving a lot of complaints about it and just recently it created a conflict on one of my own sites, so that's the end of it.

    If you're relying on the example code for any of your sites, please migrate it to the mysite folder. I will archive the example code and have it available for download if anyone is still interested.

    58277 Views
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.