Closed (fixed)
Project:
Signup
Version:
5.x-2.4
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Jun 2008 at 15:20 UTC
Updated:
21 Oct 2008 at 14:52 UTC
It would be nice to choose the order of the signup details for each signup or simply set it to order by last name.
Comments
Comment #1
dwwDo you mean at node/X/signups?
What do you mean "last name"? There's no such field in Drupal. If that's a custom signup field you added on your site, obviously I can commit code to sort on that. ;) In fact, it'd be really hard to sort on any of the custom signup data (the "Extra information" column in that table).
About the only thing we could safely do is split out the username and signup time, and then sort by either of those two columns. Is that what you've got in mind?
Cheers,
-Derek
Comment #2
pelicani commentedWe need similar functionality.
First, we want to sort the signup list by the signup status.
This may be a patch to the signup status module, I haven't checked yet.
But this lets us filter the results based on status.
Not the most full featured filter/sort, but it is a start.
Second...
We were thinking of integrating the Bio fields of the user in the signup display.
Then we could sort on any of those fields.
That would give the results a lot of flexibility.
The other display option we were thinking...
Display signups on the user/# page.
And provide a way for users to interact with their signups (cancel) from their account page.
Maybe these all don't belong in one issue.
Hoping to spark some interest.
peace,
michael
Comment #3
pcorbett commentedSorry for the delay, but yes, I was asking to sort on custom fields. Right now I'm just hacking it to do so. What I did was edit my template.php and added in the phptemplate_signup_user_form() override. There, I added first and last name fields:
In signup.module I altered signup_node_admin_page() (around line 1517) to re-order the rows in the $rows array populated from the DB. Altering the order in the DB query itself was basically impossible without really complicating the SQL:
Not a huge deal, but it's always nice when you don't have to modify the core module code.
Comment #4
dwwYeah, it's impossible to cleanly sort by custom signup data given the current design of how that custom data is handled. It's a terrible hack. Integrating bio data or other fields is going to be impossible unless you do this via a view. Tempted to mark this "won't fix" in favor of spending time on a real solution to #29568: Flexible number and type of fields.
Comment #5
dwwI just committed a fix for this to HEAD for the username and signup time: http://drupal.org/cvs?commit=144843
Sorting by custom fields is basically impossible in a clean way, so I'm just going to call this fixed for now.
More far reaching solutions will have to go into other issues, for example:
#243035: How to list all signed up users in a view??
#214091: Interraction with nodeprofile
#29568: Flexible number and type of fields
Comment #6
pcorbett commentedThanks dww, I appreciate it.
Comment #7
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.