I want to be able to add sorting/ordering to the MemberTableField - how can I go about this?
I've created an additional summary field for 'Created Date', so I can sort by this column to see the newest members.
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
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.
I want to be able to add sorting/ordering to the MemberTableField - how can I go about this?
I've created an additional summary field for 'Created Date', so I can sort by this column to see the newest members.
Hi there,
Are the headers in the table not clickable to resort the results, is that what you were after?
EDIT: Just realised you're on 2.4, see my post below for a patch to add sorting.
Cheers,
Sean
I've patched MemberTableField to support sorting in SilverStripe 2.4.
This didn't exist initially because MemberTableField was extended from ComplexTableField, but the sorting functionality was missed.
SilverStripe 3 has since allowed for sorting in the Security section, however this patch is useful for those still on 2.4.x.
I've attached the patch to this ticket.
Let me know how you get on. :)
Cheers,
Sean
Yes, perfect. Exactly what I was looking for.
Thank you for your assistance. Look forward to trialling 3.0 soon.