Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Sorting of Front End Attendees

Sorting of Front End Attendees 11 years 2 months ago #21640

  • turntwo2118
  • turntwo2118's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 18
  • Thank you received: 0
Hey there,

It appears as though the front-end attendees list is always sorting by first name.

Is there any change I can make to the registrant.php file to sort the listings by a custom field?

Thanks,
Adam

Please Log in or Create an account to join the conversation.

Sorting of Front End Attendees 11 years 2 months ago #21648

  • nathan.dth
  • nathan.dth's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1857
  • Karma: 19
  • Thank you received: 218
I believe that list sorts by date registered. There is no parameter to set a default ordering for the list, although you CAN click column titles to reorder. Let me look into this to see what it would take for you to modify as needed.

Please Log in or Create an account to join the conversation.

Nathan is no longer affiliated with DTH since the recent acquisition. You can connect with him and get any type of Joomla website help at www.JoomlaEmployee.com .

Sorting of Front End Attendees 11 years 2 months ago #21650

  • turntwo2118
  • turntwo2118's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 18
  • Thank you received: 0
Thanks! Looking forward to your reply.

Please Log in or Create an account to join the conversation.

Sorting of Front End Attendees 11 years 2 months ago #21651

  • nathan.dth
  • nathan.dth's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1857
  • Karma: 19
  • Thank you received: 218
Ok, open this file:

/components/com_dtregister/controllers/event.php

Find this code around line 1267:
$order = JRequest::getVar('filter_order','name');

In place of 'name', put the field NAME (not the label) for the field you want to order by. So it would look something like this:

$order = JRequest::getVar('filter_order','YourFieldName');

Hope that helps!

Please Log in or Create an account to join the conversation.

Nathan is no longer affiliated with DTH since the recent acquisition. You can connect with him and get any type of Joomla website help at www.JoomlaEmployee.com .

Sorting of Front End Attendees 11 years 2 months ago #21653

  • turntwo2118
  • turntwo2118's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 18
  • Thank you received: 0
Awesome! Thank you!

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.146 seconds