Jump to:

7937 Posts in 1537 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » DOM Summary Fields

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 1370 Views
  • ciaranhickey
    Avatar
    Community Member
    17 Posts

    DOM Summary Fields Link to this post

    Hi,

    I wondering if it's possible to display only a selection of my fields in the dataobjectmanager list view. I've tried using summary_fields and have tried the approach as suggested here but to no avail...

    http://ssorg.bigbird.silverstripe.com/dataobjectmanager-module-forum/show/283243?start=0

    static $summary_fields = array(
    'FieldName' => 'Column Name'
    );

    function summaryFields() {
    return self::$summary_fields;
    }

    My main problem is that one of my fields for each item contains quite a lot of text content and so is pushing down each object in my list view in the backend. You can see a screen grab of my issue here, ideally I'd like to hide "Text" column in the listview but have it appear in pop-up.
    http://ciaranhickey.com/DOM-screengrab.png

    Any help would really be appreciated.

    Regards,
    Ciarán

  • ciaranhickey
    Avatar
    Community Member
    17 Posts

    Re: DOM Summary Fields Link to this post

    Managed to solve this with an obvious solution.

    Removed the Field from array of fields in the dataobjectmanager declaration:

    new DataObjectManager(
       $this,
       'Employees',
       'ManagementEmployee',
       array('Name' => 'Name', 'Position' => 'Position', 'Location' => 'Location', 'Intro' => 'Intro'),
       'getCMSFields_forPopup'
    ));

    but left it in the getCMSFields_forPopup method.

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