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.
In ctools_entity_from_field_get_children() the naming scheme of entity from field relationships is defined as follows:
$plugin['title'] = t('@to_entity from @from_entity (on @from_entity: @field_label)', $replacements);
Example of a relationship name that you will get from a taxonomy field with label "Category": "Taxonomy Term from Node (on Node: Category)."
Suppose you have 2 different fields with the label "Category", then their relationships will end up with the same name. Now which one should I choose to get the relationship I want to add in page manager? They are not disginguishable from each other.
Maybe it would be a good idea to add the field identifier in the name somewhere?
Comment | File | Size | Author |
---|---|---|---|
#1 | 1348214-1.patch | 1.14 KB | Cyberwolf |
Comments
Comment #1
Cyberwolf CreditAttribution: Cyberwolf commentedAttaching a patch.
Comment #3
merlinofchaos CreditAttribution: merlinofchaos commentedMan. Those strings are pretty long as it is. But I cannot fault the logic, either. Committing, though I wish I had a better solution.