Multiple Parent Smartqueues
foxtrotcharlie - August 20, 2008 - 15:15
| Project: | Smartqueues for Organic Groups |
| Version: | 5.x-1.1 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Was wondering if it's possible to set up more than one nodequeue to be generated for each group by the "Smartqueues for Organic Groups" module?
For example, for each group, say I wanted a queue for the lead article, and a queue for secondary articles.

#1
I'm not sure why you wouldn't just use one queue and make the display of the lead and secondary articles depend on their placement in the queue. In any case, what you're asking for should be possible simply by adding a new OG queue at admin/content/nodequeue/ ==> "Add Smartqueues for Organic Groups"
#2
Thanks Ezra - your solution makes sense, so I'll probably do it that way.
I know that I have successfully added 2 smartqueues, although I've also encountered this error when I add the second smartqueue:
* warning: array_fill() [function.array-fill]: Number of elements must be positive in C:\Apache2\htdocs\organicgroups\sites\all\modules\smartqueue_og\smartqueue_og.module on line 197.* warning: implode() [function.implode]: Invalid arguments passed in C:\Apache2\htdocs\organicgroups\sites\all\modules\smartqueue_og\smartqueue_og.module on line 197.
* user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 query: SELECT nid, title FROM node WHERE type IN () in C:\Apache2\htdocs\organicgroups\includes\database.mysql.inc on line 172.
It creates the queue but does not create the subqueues for each group. When I edit this newly created queue, the checkbox for field "Group types which are eligible for a Node Queue:" is unchecked, although I checked it on the creation of the queue. The same with the checkbox "Restrict to posts within a group".
I'm using nodequeue 5.x-2.2, so when you say this module needs the latest nodequeue module, perhaps I should be using the dev version of nodequeue?
I'll keep experimenting to see if I can get the 2 queues right.
#3
I'm seeing the behavior you described. Something is is definitely haywire. Expect a new release soon.
#4
Actually, I was mistaken. Currently the module does not support multiple parent smartqueues. A new release will be available in a few minutes which will prevent users from submitting the second OG smartqueue, which lead to most of the errors you are describing. I've also made a change that will prevent the PHP errors you observed.
Thanks for your feedback.
#5
#6
Thanks for your quick assistance with this Ezra, and for the useful module :-)
#7
Just wanted to add that I think being able to create multiple queues for a single organic group would be a very useful feature. The homepages for a group should be able to provide access to many different types of content. What if they want to be able to have a featured event(s) and a featured news block - they need 2 queue to manage this.
Classrooms as groups:
- "Important Class Notes" - a selected list of class notes that the teacher deems to be important for students.
- "Featured Links/News/Blogs/etc." - a list of items that are relevant to the class..
Non-profit programs:
- "Related Resources" - a list of articles and resources that the organization has published which are highly relevant to this specific program.
- "Program News" - a list of news & blog items that detail the happenings within the program
I'm sure there are better examples, but I think you can clearly see how this feature would be useful in many different situations.
#8
I'd like this as well. I might even go so far as to say that group admins ought to be able to self-create new queues. Or maybe a site admin makes 5 queues available and the group can use them as they wish (in this case, i think group specific labels for each queue is essential for UI).
#9
Oh - multiple queues would cover any use cases i have in my vague mind.
#10
I have a use case for multiple OG nodequeues too:
A site where groups of users can upload their own videos (using the flashvideo) module. Each group is independent of one other and needs the ability to create their own playlists. Using nodequeue would be the prefered way of managing playlists as it would give them total control over the order of the videos in their playlists.
Each playlists (nodequeue) needs to be:
Private to a group
Administrable by group admins
Additional needs:
Ability to create multiple nodequeues for each Organic Group
Ability to limit the number of queues per Organic Group (so I can say, this group can have 2 playlists, this one can have 5 etc)
Ability for group admins to create and manage their own playlists
As noted above, I'm sure there are many use cases, but this is my one. I'm more than happy to assist with coding/testing.
ps. My needs are for Drupal 6.
#11
I would love to see this feature made possible and I'd be happy to review any patches towards that.