I have two content types: contact and list, where list has a nodereference field to a number of contacts. I want to set up an action set that adds a contact type content to a list type contact, so that I can use this action from elsewhere (i.e. VBO) but I can't seem to access the individual fields when building an action set.

Browsing the issues queue shows that I can get at the fields in a rule by adding a condition that the content is of a specific type, but is there an equivalent for action sets?

Comments

fago’s picture

Title: Accessing fields in an action set » Unable to access bundle fields in an action set
Component: Rules Core » Rules Engine
Category: support » bug

As work-a-round you can use a rule-set and check the bundle, and then access the fields in the same rule.

As proper fix, we should add UI for specifying the bundle in the variable-info of the component.

nagiek’s picture

Subscribe. I'd like to do exactly the same thing - get a node from a node reference and work with it.

The fix you describe would definitely help me accomplish this.

nagiek’s picture

Also, the workaround... uhm... worked. It's nice to have the ability to go condition->action->condition->action :)

skitten’s picture

But my ruleset can't be called from elsewhere as an action, can it?

skitten’s picture

Ah - I misunderstood; ruleset not rule. I get it now…

Anonymous’s picture

I'm also tortured by this issue.

tr’s picture

Component: Rules Engine » Rules Core
Category: Bug report » Feature request
Issue summary: View changes

As proper fix, we should add UI for specifying the bundle in the variable-info of the component.

This is a feature request.