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 am attempting to create a rule that loops through all values in a field collection attached to a node. I need to get the value of the Field Collection's Delta.
I've gone through the data selector, looking at both the field collection and the node and can't find a selection that returns the delta.
Any assistance would be greatly appreciated.
Comments
Comment #1
rbrownellComment #2
legolasboIn my opinion this issue belongs in the Rules issue queue.
If your end goal is retrieving a field value's delta, i'm not sure about how to go about it, but if it's about retrieving values of your field_collections entity this can be done by creating a loop. In this loop you can access current_list_item and directly access the values of your field_collection's fields.
Comment #2.0
legolasboImproved wording...
Comment #3
rbrownellI am aware of how to retrieve field values from a field collection what I can't find is the delta of the field collection item so that I can use it to sort the field collection items... It is also my understanding that Rules is just a framework and additional modules have to have built in support for rules. This is why I put it in the Field Collections queue instead of the Rules queue.