Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Adding fields to MemberTableField

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1647 Views
  • dio5
    Avatar
    Community Member
    501 Posts

    Adding fields to MemberTableField Link to this post

    Hi all,

    I'm adding roles to my Members with the dataObjectDecorator.

    Now I already added fields to the popup with updateCMSFields but I also want to show more fields in the overviewtable of Security.

    By looking through the code in MemberTableField.php I discovered that I can call

    MemberTableField::addMembershipFields($fieldArray);

    However, where is the best place to call it? Putting this in my updateCMSfields-method doesn't work, so I have to find a place where it loads when the admin-security section is loaded.

    Any suggestions?

  • dio5
    Avatar
    Community Member
    501 Posts

    Re: Adding fields to MemberTableField Link to this post

    Fixed.

    As to be expected: best place to do it is in _config.php.

  • dio5
    Avatar
    Community Member
    501 Posts

    Re: Adding fields to MemberTableField Link to this post

    A new question in the same line:

    How would I work on these fields?

    Suppose I want to add the field "LastVisited" but I need to convert the time or something,
    I suppose that is not possible ?

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