Closed (fixed)
Project:
Nodequeue
Version:
7.x-2.x-dev
Component:
Smartqueue Taxonomy
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Jan 2012 at 13:27 UTC
Updated:
24 Mar 2014 at 15:57 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
grossmann commentedAs I found out this is also the case in non-hierarchical taxonomies. If the same node is in multible subqueues it get duplicate entries in the view. Setting the view query setting to distinct doesn't help any.
grossmann-mcs
Comment #2
grossmann commentedOK after playing around I think I found out the main problem here. Nodequeue ignores the subqueues for displaying the nodes in a view. Example:
The view result for taxonomy term of subqueue 1 looks like this:
This results in duplicates on nodes with multible terms independent if they are on the same level or in a hierarchy.
grossmann-mcs
Comment #3
grossmann commentedTo continue my monologe here ;-) this may be a duplicate to adding the same node more than once to a queue causes bad behavior but I a not sure if this is a general problem or specific for the smartqueue taxonomy submodule.
grossmann-mcs
Comment #4
grossmann commentedEdit of the issue title to reflect the more general problem.
Nodes which are in more than one subqueue get mixed up and duplicate displayed in a view (as described in #2).
grossmann-mcs
Comment #5
Anonymous (not verified) commentedI solves this as follows:
- add a filter by Subqueue reference "(queue) Nodequeue: Subqueue reference (= )"
- in the filter settings choose "Pick arguments for values" and select the contextual filter "Content: Has taxonomy term ID (with depth)"
This basically restricts nodequeue-nodes to a specific subqueue only. This solution works for taxonomy terms pages/views of course.
Comment #6
jackmc commentedI have the same issue, can you elaborate on how you resolved this?
I can't reproduce the second step - in the filter settings choose "Pick arguments for values" and select the contextual filter "Content: Has taxonomy term ID (with depth)"
Thanks a lot,
Jack
Comment #7
jackmc commentedAfter some pain, I got this working (for my case). Desired functionality was to have a taxonomy smartqueue, then use views to show a listing of content within a given subqueue, overriding the standard taxonomy term page.
The solution, which was quite logical, was to ignore taxonomy completely in the filters, and just rely on subqueue. I think this is what morningtime was referring to above.
Hopefully this helps others. Please ask if you want more details.
Comment #8
Anonymous (not verified) commentedSorry for late reply. In my version of Views (probably latest dev), filters criteria can have the option "Pick arguments for values". I setup a contextual filter "Content: Has taxonomy term ID (with depth)", and then selected this as the "Pick arguments for values".
This reduces duplicate nodes from multiple smartqueues on taxonomy/term pages.
Comment #9
gooddesignusa commentedmoringtime I updated to the latest dev of views and still dont see that option. I looked through the views issue queue and found this post:
http://drupal.org/node/357082 - Pull filter value from an argument?
Did you happen to apply a patch from that issue or do you have http://drupal.org/sandbox/itangalo/1086472 (Views arguments in filters) sandbox project installed?
Thanks in advance.
Comment #10
shadysamir commentedThanks @grossmann-mcs that was really helpful
Comment #11
webstudiodelta commented@jack-mc 's solution works but leaves one feature desired, which is the ability to have all non-queued nodes simply appear below the queued ones, provided they are also tagged with the appropriate term. Any ideas on how I might accomplish this?
Comment #12
grossmann commentedI can not get it to work. I tried @jack-mc but setting the subqueue ref in the contextual filtes gave me nothing. My tid was 104 and with content: taxonomy ref i get the desired results but with lots of dublicates.
The stuff @morningtime mentions is not in my views 3.7 version so i could not try this.
Setting the query to distinct didn't solve anything too.
So I am bit lost here. Any help is welcome.
Comment #13
grossmann commentedOk that was definitly a pilot error. I tried to use a tid (104) which was not part of a smartqueue (even the nodes had already a taxonomy with a smartqueue). I simply had to make a new taxonomy queue with the right terms and add the nodes to this queue and everything worked fine.
Conclusion: Solution in #7 works and you have to check if the term is truely part of an nodequeue (eg. taxonomy queue).
This leaves only open the requested feature of #11 which I think might be a seperate issue (if any at all). So I close this as fixed.