Jump to:

7935 Posts in 1536 Topics by 943 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: 60147 Views
  • hu
    Avatar
    Community Member
    21 Posts

    Re: Preview: DataObjectManager module Link to this post

    @robinp: look at dataobject_manager/javascript/dataobject_manager.js line 105

    // Search
    var request = false;
    $container.find('#srch_fld').focus(function() {
       if($j(this).attr('value') == "Search") $j(this).attr('value','').css({'color' : '#333'});
    }).unbind('blur').blur(function() {
       if($j(this).attr('value') == '') $j(this).attr('value','Search').css({'color' : '#666'});
    }).unbind('keyup').keyup(function(e) {
          if(request) window.clearTimeout(request);
          $input = $j(this);
          request = window.setTimeout(function() {
             url = $j(container_id).attr('href').replace(/\[search\]=(.)*?&/, '[search]='+$input.attr('value')+'&');
             refresh($container, url);
          },200)
       e.stopPropagation();
    });

  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: DataObjectManager module Link to this post

    @cmswarrior- The search is throttled to a quarter second of no character entry. If you think it needs to be cranked up a bit, I can do that. I suppose not everyone types as fast as I do.

    @robinnp - What you're looking to do with a MMDOM is simply not what it was built to do. If you look at the way a MMCTF works, you'll see the same thing. The idea is to give the user a global view of all available DataObjects and allow single-click association of those DataObjects to the page. The objects that are associated with the page should show an activated checkbox and a differently colored row. If the MMDOM were to filter out all the unassociated objects, how would one associate more existing objects at another time? It occurs to me that MMDOM and MMCTF are not the solutions you may be looking for?

  • Johnny
    Avatar
    Community Member
    34 Posts

    Re: Preview: DataObjectManager module Link to this post

    Hi!

    I'm having trouble using DataObjectManager module. I just installed it and I created a simple one-to-many relationship (like in the doc).

    The thing is the CSS templates for the CMS back-end doesn't seem to work. Also, if I edit or add a record, the form is using all the wndow space. I attach some pictures. Is anybody having this issue?

    Thanks!

    JP

    Attached Files
  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: DataObjectManager module Link to this post

    Something's messed up with your pathing. Make sure dataobject_manager is installed in your silverstripe root.

  • Johnny
    Avatar
    Community Member
    34 Posts

    Re: Preview: DataObjectManager module Link to this post

    Thanks for the quick reply.

    I did changed the name of the folder in which the module was included to 'dataobject_manager' and it suddenly worked !

    If I'm not the only one this would happen, then I would suggest to include this step in the installation procedure!

    Thanks, it looks like it's a great feature,

    JP

  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: DataObjectManager module Link to this post

    What was the name of the folder if it wasn't dataobject_manager? Where did you get it? That's really odd.

  • Aram
    Avatar
    Community Member
    598 Posts

    Re: Preview: DataObjectManager module Link to this post

    yea I got a little confused by this at first, it's because if you extract the archive directly to your root the folder is called modules-dataobject_manager-rXXX/ which means the requirements don't work as they look for dataobject_manager/.

    Is there a way to make the requirements more dynamic and pick up the name of the folder automatically? Not a huge issue but might get a some people confused as most modules don't mind what the root folder is called.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: DataObjectManager module Link to this post

    Interesting. I think what I need to do is put dataobject_manager in a parent folder so that the ZIP file name does not become the folder name.

    Also, to all of you who are using the download, I highly recommend switching to SVN. Updates happen so rapidly to DOM, it's impossible for me to constantly be exporting and posting a new ZIP file to Silverstripe.

    60147 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.