Posted by pkchoo on December 23, 2011 at 8:18am
Hopefully, this is a really simple question.
I attempted to create a nodequeue to organize users in Drupal 7, but I didn't see "users" as one of the available content types (obviously because it's 'node'queue). Thinking back, I suppose I used 'content profile' in Drupal 6 in conjunction with nodequeue to control users.
How do I accomplish the same thing in Drupal 7? I want to be able to create a queue of coaches (users) and organize them in a specific order.
Any help would be greatly appreciated. Thank you.
Joe
Comments
http://drupal.org/project/dra
http://drupal.org/project/draggableviews is still in dev for D7, but may suit your needs. It's a bit more leg-work to set up than nodequeue, but also more configurable/flexible. You might also consider http://drupal.org/project/flag for assigning "Coach" status.
ArtistConk, thanks for your
ArtistConk, thanks for your response. I did attempt to use draggableviews a while back, and yes, it was quite a bit of leg work. I decided to go with nodequeue because it was easier to set up. I may have to revisit it.
taxonomy(?)
with Drupal 7 you have the ability to add fields. maybe creating a tag for coaches and setting up a nodequeue based on 'coach' tag? or it is also possible to utilize user reference in some fashion?
The only problem that I would
The only problem that I would see with using flag or a custom 'coach' tag and a custom view, is one would loose the functionality of being able to display or not, reorder, and que --which is what nodeque was made to do.
I would create a custom coach node type with a 'user reference' field. Then create the nodeque as normal, only instead of creating the view as you would with the nodeque use a relationship with the 'user reference' field to get the fields from the user (if they are needed) and use the nodeque for sorting. http://drupal.org/project/user_revision could even be used for revision controle of the user fields.
This could all be packaged up rather nicely in a feature to be reused or shared back with the community.
This is what I would try, I have not done this before.
smartqueue taxonomy?
I thought that Smartqueue Taxonomy actually provided that functionality automatically. For me, it provided default views, which can be modified, of taxonomy vocabularies if I wanted to use them. They are nodequeues and can be manipulated as such.
weight module
Smartqueue Taxonomy doesn't exist yet for Drupal 7, but an alternative might be to use the weight module. Although the UI for this module is very basic, you can use Views to order nodes by weight.
simple, elegant answer
I really like the answer you provided. It makes it a simple solution in every way. A content manager can order and reorder the queue in any way they wish and the view will always render it ascending or descending based on weight no matter what. Nice job. I added a plus one to this answer.
userqueue module?
Isnt userquque module what you want?