0

I am trying to modify the values of one field in all instances of a field collection type. I have a view listing all field collection items, that I want and an operation field with modify entity. Setting value in the field works fine, but I can't use any tokens from the current item, only site tokens are available.

Can this be done with VBO? Are there any other easy ways to do it?

0

You can create a view of nodes, rather than field collections, then add the collection as a Relationship.

enter image description here

Your node tokens should now be available for application to the field collection fields.

  • I may have misread your question. Did you want tokens from the node, or from the field collection fields? – autopoietic Dec 15 '14 at 10:53
  • I want tokens from the field collection. Still this might work if there is access to the field collection item fields in the node tokens. I will have to test – todinov Dec 15 '14 at 11:30
  • In my test install the field collection fields do not provide tokens via node tokens, just a token representing the collection itself. Sorry – autopoietic Dec 15 '14 at 12:00
  • I did find this module while reseraching: drupal.org/project/field_collection_tokens – autopoietic Dec 15 '14 at 12:01
  • This might work, I was also thinking of trying Advanced entity tokens drupal.org/project/aet – todinov Dec 15 '14 at 12:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.