Results 1 to 2 of 2

Thread: Sorting members by date/time of creation in BE?

  1. #1
    New user
    Join Date
    06-19-09.
    Location
    Denmark
    Posts
    29

    Default Sorting members by date/time of creation in BE?

    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?
    Cheers!

    Jimmy Rittenborg
    Follow me on twitter

  2. #2
    Experienced user
    Join Date
    06-11-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: Sorting members by date/time of creation in BE?

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •