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

rbrownell’s picture

Title: Delta Value in Rules? » Is it possible to Return the Delta Value in Rules?
legolasbo’s picture

Project: Field collection » Rules
Version: 7.x-1.0-beta5 » 7.x-2.5
Component: User interface » Rules Core

In 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.

legolasbo’s picture

Issue summary: View changes

Improved wording...

rbrownell’s picture

Project: Rules » Field collection
Version: 7.x-2.5 » 7.x-1.x-dev
Component: Rules Core » Code
Issue summary: View changes

I 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.