Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I've patched redhen_connection so that related entities can be used in views with their available field data.
Comments
Comment #2
arosboro CreditAttribution: arosboro at DropForge Labs commentedComment #3
arosboro CreditAttribution: arosboro at DropForge Labs commentedSee github PR #86 https://github.com/thinkshout/redhen/pull/86
Comment #4
arosboro CreditAttribution: arosboro at DropForge Labs commentedI've updated the patch to make relationships for entity_type, endpoint id, connection type so if one entity type is used in more than one connection type, the appropriate relationship can be brought in.
Comment #5
mgiffordThanks! Sounds like a powerful addition.
Comment #6
arosboro CreditAttribution: arosboro at DropForge Labs commentedI've updated the patch to apply cleanly to the latest 8.x-1.x branch.
Comment #7
gcbYep! Thanks for this. I'll put it on my plate and try to get reviewed soon.
Comment #8
arosboro CreditAttribution: arosboro at DropForge Labs commentedThe attached patch in #6 does not bring along newly created files. I will update once I have a passing build with a re-rolled patch.
Comment #9
arosboro CreditAttribution: arosboro at DropForge Labs commentedThis patch has been reviewed and should help demonstrate the functionality that is added.
Comment #11
gcbThis is great, thanks!
Comment #13
gcbIn revisiting this, I've found a couple of needs/challenges, so re-opening.
A. @arosboro, I missed this in your original patch, but you have this code referencing a plugin, but the plugin doesn't exist:
Do you have this plugin written somewhere and it just didn't make it into the patch?
B. I found the need to get to the connection entity itself, and realize there are really 3 plugins needed:
I can imagine that the first one is actually not needed, as the other two can create the same effect. However, I think it makes sense to have them.
Here's a patch starting the work to create these. One element I'd like to add is filtering the types of content that each connection asks for: currently they let you attach them to any entity type, even though our configuration makes it clear what content type should be allowed. What I have feels confusing and sloppy at this point, although it seems to work.
Comment #14
arosboro CreditAttribution: arosboro commentedHi, @gcb, I have shifted my focus, and no longer participate actively in the drupal community. You may be able to get support with this partially complete work, from @chertzog (Chris Hertzog). I believe he is still supporting a codebase that uses these patches.
Wishing you the best.
Comment #15
gcbThis functionality has been added separately.