When in Security, I'd like to be able to click on the table headers to sort the columns. Is this possible?
Also, can I set how many entries are displayed per page?
Thanks in advance!
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.
When in Security, I'd like to be able to click on the table headers to sort the columns. Is this possible?
Also, can I set how many entries are displayed per page?
Thanks in advance!
I'd say the same as here...
http://www.silverstripe.org/general-questions/show/15052
but with SecurityAdmin or MemberTableField or something :)
Thanks for your reply. I was looking into the setPageSize() function and it works if I put it in RootForm in /cms/code/SecurityAdmin.php. I'd rather not edit the core files.
you can add a decorator to apply it and keep it all in mysite
and I like your view - I did add it as a concern when I gave the advice previously...
I've extended my Member class with some extraStatics with a DataObjectDecorator. Can I place the setPageSize() in there somewhere?
it's not Member to decorate, but in whatever Admin - like RootForm like you mentioned - RootForm Decorator (note I am not sure if it is possbile - I've decorated members, leftandmain, but not a form)