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.

Archive

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

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

Adding fields to MemberTableField


Reply

3 Posts   1659 Views

Avatar
dio5

6 November 2007 at 9:50pm Community Member, 501 Posts

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

6 November 2007 at 10:28pm Community Member, 501 Posts

Fixed.

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

Avatar
dio5

6 November 2007 at 11:30pm Community Member, 501 Posts

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 ?