Rules does not allow to populate content profile field

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by BlueCat on November 30, 2011 at 7:08pm

Could someone explain what is happening here? I have a content type that is a part of content profile. It has a numeric field "latest" that I am trying to update every time the user saves a value in another regular content type "miles" via a field called "miles_record." So when "miles" content is saved, I want to update the content profile field "latest." Rules does not seem to allow this.

I am trying to do the following:

On Event: Saving New content
And created content is: miles (this is the CT for entering "miles_record" filed values)

Do: Load content profile (loads content profile and makes "latest" field available)

at this point I am trying to populate the "latest" filed in content profile, but when I try adding this field with "CCK" Populate filed" action, it looks like Rules assumes that I want to update a field in the created content "miles," not in my content type. Does Rules support updating a content profile field with a value of a field from the node of another content type?

Thanks for the help!

Categories: , ,

Comments

Solved

Posted by BlueCat on November 30, 2011 at 8:32pm

I replaced tokens with actual $node->fieldname[0]['value'] in the php box and now it works! I also double-checked the "Arguments configuration" in the "populate field" action to make sure that my content was "Content Profile" and not "created content" since I am inserting a value into a content profile field.

Rules

Group organizers

Group categories

Categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /