The dummy field doesn't currently let you select relations for which the node's entity type is a target.
Attached is a very rough patch that works for me.
For review:
- Do we care about cases where a given entity type can appear as either a source or a target; and where the user only wants to display one of these?
- What's the best layout/terminology? Is source/target code-only terminology, or is it ok to use for user-facing?
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 1977672-relation-dummy-field-display-target_3.patch | 2.13 KB | naught101 |
| relation-dummy-show-directional-targets.patch | 2.29 KB | naught101 |
Comments
Comment #1
naught101 commentedComment #2
naught101 commentedUse reverse label:
Comment #3
naught101 commentedCommitted a quick fix in 42c9fb1. This won't work for relations where both directions are available but only one direction is desired, but at least it gets the targets that were missing before. I didn't want to do anything more complex because it might decrease performance (more select queries). See the TODO comment in code.