Closed (fixed)
Project:
Views tree
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Nov 2011 at 21:19 UTC
Updated:
15 Dec 2011 at 17:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
geerlingguy commentedPatch attached - hopefully Crell can see if this fixes the problem for him (I don't know what specifically was not working for him, as the IRC mention simply informed me of a problem :)
Comment #2
Crell commentedWhat wasn't working is that I always get a "no entries" display with the tree plugin. :-) I'll try this patch shortly. If that's not it, I'll try to figure out a better fix.
Comment #3
Crell commentedOK, no, my issue is something else. On further investigation I think it's related to using entityreference instead of nodereference. I'll investigate that separately. Go ahead and commit the patch above though for good measure. :-)
Comment #4
geerlingguy commentedWill do. I haven't given Entity Reference a try... When did it come on the scene? I thought Relation was the new rage in relationship-building techniques for Drupal entities that wanted to hook up.
Comment #5
geerlingguy commentedCommitted: http://drupalcode.org/project/views_tree.git/commit/a5de2c2
Comment #6
Crell commentedRelation is a different beast, much more complicated. EntityReference is "wtf are there different field types for referencing nodes, terms, users, etc.? They're all frickin' the same thing!"
'course, that means the internal data structure is different, plus the Views/Field API integration is completely different in D7. Actually based on what I was investigating last night I don't actually believe you that views_tree works at all in Drupal 7 right now. :-) I've got an idea for how to fix it after some help from Merlin.
Comment #7
geerlingguy commentedWe're using it (have been using it for 6 months) on Drupal 7 / Views 3.x on flocknote.com; see #1334320: Add documentation, examples, images depicting use. for a screenshot and a link to an example page.
I've overridden the views tree theme function to get the JS expand/collapse tabs working in this use case, but I haven't had any trouble getting it working, or using it on different views... however, for proper views integration with the references module (which is pretty stable/simple/grokkable compared to Relation, which I like :), you need to be running References 7.x-dev (as it fixes the views reverse reference implementation that's necessary for Views Tree to get the right data). You also need Views rc1 or later.