Hi all
I would like to hear if anyone know how i can extend the sorting options for members, to include sorting members by date/time of creation in the backend?
Hi all
I would like to hear if anyone know how i can extend the sorting options for members, to include sorting members by date/time of creation in the backend?
You can simply add this line into the config/dcaconfig.php file, which stores custom changes to DCA's that you'd like to make to an installation. Any items in this file will be kept safe during an installation upgrade to a new TL version.
$GLOBALS['TL_DCA']['tl_member']['list']['sorting']['fields']['tstamp DESC']
The above will show the latest updated member at the TOP in the back-end, (provided you've done the sorting drop-down).
You might also have to extend the tstamp field with a sorting option (I can't check it right now).
However, I noticed that there isn't a field for creation as tstamp will be updated when the record is updated (e.g. profile save) as well. Anything other that tstamp will require a custom development to be made.
Bookmarks