Jump to:

5513 Posts in 1732 Topics by 1218 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Edit ModelAdmin record in popup

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

Page: 1
Go to End
Author Topic: 911 Views
  • Chris Hope
    Avatar
    Community Member
    18 Posts

    Edit ModelAdmin record in popup Link to this post

    In a ModelAdmin page you can search for a record and then edit it. The edit page loads into the right side. Is there a way to make it load into a popup instead? Like you can when editing a record from a regular ComplexTableField.

  • swaiba
    Avatar
    Forum Moderator
    1784 Posts

    Re: Edit ModelAdmin record in popup Link to this post

    yes there are ways - but my first question would be why?

    personally I think ModelAdmin is fantastic. You only need to specify the DataObject(s) and 2/3 lines to create a ModelAdmin and your work is over... why make things more complicated?

  • Chris Hope
    Avatar
    Community Member
    18 Posts

    Re: Edit ModelAdmin record in popup Link to this post

    I agree, it's wonderful and simple. However, if you are on page 2 or page 3 for example, go edit a record and then click "Go Back" you are back on the first page. You can right-click and open in a new window to edit the record but it would be nice to have the option to be able to open it in a layover/popup/whatever you want to call it. I've found in my own sites I have occasionally wanted to do this, as well as now my customer specifically asking for something like this because they need to edit a lot of records.

  • swaiba
    Avatar
    Forum Moderator
    1784 Posts

    Re: Edit ModelAdmin record in popup Link to this post

    ahhh - something I've been asked about by another client - is there a ticket open on this?

    All other bugs I remember from a year ago on ModelAdmin have been solved as I can tell. I don't use the 'back' button, I find setting a large page size (to see more than 10 records) and making sure the search is right (to make it easy to find the records you want) means I use 'search' again instead. When I want tons of info I really need a report of a mass update / batch operation.

    It sounds a bit ridiculous, but if you were to add all the records into a tab of one, using a HasManycomplexTableField - this would accomplish it straight away. It would obviously loose the searching capabilities - I think the DOM HasManyEtc has much more searching/selecting/editing capabilities - I'd encourage you to look at that.

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