Jump to:

7921 Posts in 1359 Topics by 933 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Preview: DataObjectManager module

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w

Go to End
Author Topic: 54691 Views
  • Andre
    Avatar
    Community Member
    109 Posts

    Re: Preview: DataObjectManager module Link to this post

    I am sorry, I was so stupid, just take DataObjectManager instead of ImagaDataObjectManager.

    class ProjectObjectPage extends Page{
    static $has_many = array (
    'ProjectObjects' => 'ProjectObject'
    );
    public function getCMSFields(){
    $fields = parent::getCMSFields();
    $manager = new DataObjectManager(
    $this, // Controller
    'ProjectImages', // Source name
    'ProjectImage', // Source class
    array(
    'Description' => 'Description',
    'ProjectVideoWidth' => 'ProjectVideoWidth',
    'ProjectVideoHeight' => 'ProjectVideoHeight'
    ), // Headings
    'getCMSFields_forPopup' // Detail fields (function name or FieldSet object)
    // Filter clause
    // Sort clause
    // Join clause
    );
    $fields->addFieldToTab("Root.Content.Projects", $manager);
    return $fields;
    }
    }

  • vstrazz
    Avatar
    Community Member
    63 Posts

    Re: Preview: DataObjectManager module Link to this post

    Hey guys. I'm having a conflict with complex table field pop-up's in the security section of the CMS when Dataobject_manager is installed. Has anyone else had this issue yet?

    Instead of the pop up the edit form is returned consuming the entire browser page.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: DataObjectManager module Link to this post

    So to replicate this, I just click the Security tab on any site that has DOM installed? 2.3.1? Browser? I'll try it out. Surprised this hasn't been reported yet.

  • vstrazz
    Avatar
    Community Member
    63 Posts

    Re: Preview: DataObjectManager module Link to this post

    Just click the security tab, then click edit on one of the groups.

    I have a ton of other modules and custom work done, but the dataobject_manager folder is default download. I simply moved the dataobject_manager folder out of my root and retried the issue and it was fine.

    NINJA EDIT:// 2.3.1 / Most recent Firefox on XP

  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: DataObjectManager module Link to this post

    I can't replicate it in Safari or Firefox. Anyone else?

  • martimiz
    Avatar
    Forum Moderator
    880 Posts

    Re: Preview: DataObjectManager module Link to this post

    @UncleCheese
    I tried the SWFUploadIFrameField, but having some issues with it (maybe you could point me in the right direction):

    - attach button greys out when you happen to click it before choosing a file
    - treedropdown for existing files hangs om 'loading...'

    (mozilla 3 win)

    So I was thinking: why not have a field that has just a button that uses the popup from the ImageDataObjectManager to add/edit an image, and then maybe shows a thumbnail next to the button. It would keep the cms tabs nice and clean, and still use all extra's from your popup that I like so much, like title, alt and description - much more then the SWFUploadIFrameField does.

    This would work nicely on pages that hold several images - think a book cover, an author photo, a company logo, that would be added separately, and not just as a series of images. Could it be done?

    @vstrazz
    I have the same configuration (2.3.1, XP Mozz 3.0.1) and it works fine for me...
    [edit] I have the latest from the svn (142)

  • Shawn Parr
    Avatar
    Community Member
    60 Posts

    Re: Preview: DataObjectManager module Link to this post

    I'm also unable to confirm. I've tried with Safari on 10.5, and Firefox on XP. This is with a 2.3.1 install. Unfortunately I can't say which SVN snapshot of DOM I have right now. It is at least a week old, if not a bit older.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: DataObjectManager module Link to this post

    @martimiz - I like that idea, but I'm not sure why a single file needs a whole popup. Why not just clean up the look of the ImageField and have it implement SWFUpload? As it is, a file input generates a popup window on its own (an OS dialog box, that is). So it seems unnecessary to have another one. I would definitely like to do more with the SWFUploadField, though. I love the idea of being able to filter MIME types for clients.

    Always looking for new stuff to add on, so thanks for the input!

    54691 Views
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.