Jump to:

7939 Posts in 1472 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Nested DataObjects with DOM

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1 2
Go to End
Author Topic: 2075 Views
  • CraftsMan
    Avatar
    Community Member
    35 Posts

    Re: Nested DataObjects with DOM Link to this post

    UC, fantastic, its come along real nice.

    Any suggestions/hack to resolve issue 1?

  • UncleCheese
    Avatar
    4085 Posts

    Re: Nested DataObjects with DOM Link to this post

    Sounds kind of like your other issue.. Just write a custom getter.

    public function getRowIcon() {
    return $this->SomeField == "bar" ? "mysite/images/bar.gif" : "mysite/images/placeholder.gif";
    }

  • CraftsMan
    Avatar
    Community Member
    35 Posts

    Re: Nested DataObjects with DOM Link to this post

    Sorry buddy, my bad!

    I have already done that - what I meant was my original issue of the overlay over the overlay ( where I have DO within DOs )

  • CraftsMan
    Avatar
    Community Member
    35 Posts

    Re: Nested DataObjects with DOM Link to this post

    UC,

    Is it possible to have an add button when in edit mode ( top left maybe ) on the DOM pop overlay? so that dont have to close the edit mode and then click on add ( but like the next previous button where it reloads the edit window )

  • CraftsMan
    Avatar
    Community Member
    35 Posts

    Re: Nested DataObjects with DOM Link to this post

    The add button is not required if the nested overlay doesnt contain has many. I have moved on to using ModelAdmin as a solution to overcome this problem as well as other deep-nested problem, specifically if I have an overlay over an overlay ( bit DOM generating has manys ) then there is no easy way of return to a parent overlay window.

  • CraftsMan
    Avatar
    Community Member
    35 Posts

    Re: Nested DataObjects with DOM Link to this post

    Hi UC

    As I understand, you were cosnidering redoing DOM so it won't use popup windows. Is this something you might be look to release soon?

    Thanks
    CM

  • UncleCheese
    Avatar
    4085 Posts

    Re: Nested DataObjects with DOM Link to this post

    Yes, that is the plan. I don't have release date at this point, however. Paying gigs have to come first!

    ---------------
    Silverstripe tips, tutorials, screencasts, and more. http://www.leftandmain.com

  • stevanovich
    Avatar
    Community Member
    59 Posts

    Re: Nested DataObjects with DOM Link to this post

    'Just a couple of issues with Nested Tables which I have working fine. I have a Courses page working in DOM. Added nested table to add dates for that a particular course. Everything is fine but the DatePickerField doesn't display the calendar when clicked on. Is this an issue when having a second popup?'

    Edit: seems to work now bizzarre!!!

    Just these to sort

    Just one more question from this is I have added view/show to dataobjects which works with the original objects ie the courses.php but the new dataobject with dates added page doesn't show up on the frontend when using coursesdate.php details in the template. Any idea? Do you want me to upload the code.

    I have searched the forums and find that DataObject cannot be included on the SS search facility you suggested a while back to use google search has there been any changes in this? can we search DataObject using a custom search of its own?

    I am using 24.5 and latest DOM.

    Steve

    2075 Views
Page: 1 2
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.