Put some cck field / rules field? values into user profile.

Events happening in the community are now at Drupal community events on www.drupal.org.
marcusx's picture

I would like to update some profil data if a user creates a new node of a certain type. Can I create additional form fields with rules? At the momen the data I have are in some cck textfields. And thats ok because I need to get this data on the add node form. But it might be better for security not storing the data in the nodes but only in the user profile.

Is ist somehow possible to have text fields on the add node form, but not saveing them to the node? Instead do something with rules with this values? Or is there a CCK field for that? For example a checkbox which is not for saveing any data instead just for indicateing if a certain rule should be fired or not. E.g. send mail / send no mail.

Comments

Not 100% sure

itangalo's picture

I'm not 100% sure of what you want to do, but it is definately possible to use Rules to act on content in a node -- and then resetting that field.

I would suggest a setup like this:
1) A rule triggering on node save
2) A condition checking that it is the right type of node being save
3) A condition checking the field value you are interested in (such as 'send e-mail when this node is saved' checkbox)
4) Configure actions to do the stuff you are interested in (such as sending an e-mail)
5) Configure another action to change the CCK field value (for example to an empty checkbox)

I hope this helps getting things on the way!

If you want to work with the core Profile module, I'm not sure what Rules can do -- I almost always use the Content Profile module instead.

Good luck!
//Johan Falk, NodeOne, Sweden

Rules

Group organizers

Group categories

Categories

Group notifications

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