fields missing since fused_query not built correctly

kcoworks - November 24, 2007 - 17:40
Project:Views Fusion
Version:5.x-1.2
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:duplicate
Description

I have succesfully set up views_fusion and installed the patch for nodereference.
I built a fusion between my views vv and vvp
from vv, I only get the noderef field, the other field I want appears in my table, but isn't filled in
from vvp, I get the image field and an integer field with success, the taxonomy terms appear, but are also not filled in.
Am I missing something?

thx in advance for any help...

#1

kcoworks - November 25, 2007 - 20:46

After messing around for a while, I got the fields to work decently, but the taxonomy terms are still missing. If anyone could help or just point me towards the code where this gets handled, I could have an extra look at it... thx!

#2

liquidcms - September 15, 2008 - 05:59

i have the same issue.

- v-pri fields show
- v-sec fields show except the taxonomy terms

#3

liquidcms - September 15, 2008 - 06:48
Title:taxonomy terms missing?» fields missing since fused_query not built correctly
Component:Miscellaneous» Code
Category:support request» bug report
Priority:normal» critical

changing from support request to critical bug and changing title

i have spent a couple hours going through debugger to see if i can track down why the taxonomy fields don't show and i think i have a general idea of the issue; and i think there are numerous posts here which basically relate to the same issue.

the approach taken in the vf module to create the view to be fused is incorrect.

the function: views_fusion_views_query_alter() this inturn eventually runs _views_build_query() to build the query to merged to the main query. The problem is that this runs view_build_view which eventually runs views_theme which is used to add the additional fields to the query object.

Not quite sure the correct approach here; but i think it is likely a fairly simple fix to get the correct query created for the view in that function.

I think this would solve other issues for anything where a field is missing (audio, tax, etc).

#4

liquidcms - September 15, 2008 - 07:13

although.. work around at the moment can be solved by the fact that views_fusion_views_query_alter() does do the right thing for the primary view (just not the fused view).. so by flipping the views around and using the view that needs to display the taxonomy term to the primary view and then using the noderef in reverse direction - give me what i want.

Of course if there was a taxonomy (or other field which isn't built correctly here) in both views, then out of luck again.

#5

liquidcms - September 15, 2008 - 23:21

my work around didnt last for too long.. i now need to add views bulk operations to the view.. which will possibly work with v_fusion; but only on the primary view - which, because of my work around, isn't the right one.

anyone know of any thing else out there that can join cck types within views - possibly just a new field definition that can pick fields from a related node??

#6

llribas - May 28, 2009 - 16:01

same problem here.
I need to show taxonomy terms from view B in fused view A+B (A got taxonomy terms too)
look's like frequent need, but I can't find info about it...

#7

llribas - May 30, 2009 - 19:23

ok... I solved with this: http://drupal.org/node/142714

thx

#8

llribas - May 30, 2009 - 20:54
Status:active» duplicate

Ok, I think it's solved, finally I found the issues.
For me the problem was the mix of 2 problems:

  1. http://drupal.org/node/142714
  2. http://drupal.org/node/125849

I applied both and everything ok!
The first solve the problem showing taxonomies in a fused view (the taxonomies from the secondary view).
The second une solves the taxonomy exposed filters in a fused view.

Thanks to Fago.

 
 

Drupal is a registered trademark of Dries Buytaert.