Posted by fago on December 25, 2012 at 11:14pm
12 followers
Jump to:
| Project: | Entity API |
| Version: | 7.x-1.x-dev |
| Component: | Code - misc |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
via the entity property info API we have knowledge about entity relationships (independently from any schema). Let's expose this as a CTools relationships also?
We should make sure we do not duplicate any existing ctools relationships though. Not sure whether we can do this with CTools' API? Worst case, we could still make it opt-in only by only providing this if a special flag is set in the entity references' property info.
Comments
#1
Related issues:
#1340748: Add CTools relationship
#1834920: Create profile2 ctools relationship context from node
#2
How to make this generic? Some entities does not have bundles.. it seems we need 2 kinds of relations.
When referenced entity have bundle we should provide a settings form and defaults.
#3
Does CTools even handle bundles? Isn't exposing the entity reference enough?
#4
Probably enough but all ctools' shipped plugins are have custom plugins/implementations for that purpose (choose a bundle)
#5
For anyone else who finds this issue, andypost's patch in #1011370 may help sites as a temporary solution until this one is resolved.