Crell had mentioned that Views tree wasn't working. I glanced at the copy I'm using for flockNote (without any problem), and the only substantial difference between the two (a couple whitespace differences) is in the patch I will attach in a moment...

CommentFileSizeAuthor
#1 1357448-views-tree-difference.patch589 bytesgeerlingguy

Comments

geerlingguy’s picture

Status: Active » Needs review
StatusFileSize
new589 bytes

Patch 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 :)

Crell’s picture

What 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.

Crell’s picture

OK, 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. :-)

geerlingguy’s picture

Will 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.

geerlingguy’s picture

Status: Needs review » Fixed
Crell’s picture

Relation 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.

geerlingguy’s picture

I don't actually believe you that views_tree works at all in Drupal 7 right now. :-)

We'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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.