Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

Adding fields to MemberTableField


Go to End


3 Posts   1937 Views

Avatar
dio5

Community Member, 501 Posts

6 November 2007 at 9:50pm

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?

Avatar
dio5

Community Member, 501 Posts

6 November 2007 at 10:28pm

Fixed.

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

Avatar
dio5

Community Member, 501 Posts

6 November 2007 at 11:30pm

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 ?