Closed (won't fix)
Project:
Views (for Drupal 7)
Version:
6.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
20 Dec 2010 at 22:22 UTC
Updated:
18 Mar 2014 at 21:19 UTC
Jump to comment: Most recent
Comments
Comment #1
sorensong commentedThis is a better explaination of what's going on, what I'm trying to do.
I have display "A" and have attached display "B". A has 2 results and B has 15. "Items to display" is 10 for both. the first page shows Ax2 and Bx10- The problem is page two still shows Ax2 (along with Bx5, which is correct).
My question- is there a way to more tightly combine two views?
Comment #2
merlinofchaos commentedThere is no way to do this. You could possibly do some evil tricks in the preprocess for a style template and mix rows together but that would be some pretty advanced development work.
Comment #3
sorensong commentedThere is a way to do it in SQL- I've done it a long time ago. I'm looking for a module, however. Attachments is close, but no cigar.
Comment #4
merlinofchaos commentedYes,in SQL it's called a UNION and Views doesn't support it.
Comment #5
capellicSee this tutorial.
http://sethsandler.com/code/drupal-6-creating-activity-stream-views-cust...
Comment #6
sorensong commented@capellic FANTASTIC! Thanks for the link!
Comment #7
KingSalibah commented@merlinofchaos or other...
I don't understand why Views doesn't have the ability to execute UNION functions. Is there some technical reason why this can't be done? We have a database, we have PHP, thus why can't Drupal have UNION support?
Comment #8
bdanin commentedThis is a bummer that the UNION concept doesn't work in Views. I could really use this.
Comment #9
bdanin commentedSo I found this, and it almost works for what I need. It's a very promising start I think:
https://drupal.org/node/1785294