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!
Comments
Solved
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.