Hello,

I have two different content types referenced using nodereference and I'd like to update parent's date whenever a child is added/updated. I've been told that this module can be used to achieve that, but after reading the documentation and some tutorials, I don't know which action should I select.

I also looked at the export/import rules but there's nothing like that.

Can anyone help me with this, please?

Thanks

Comments

c-c-m’s picture

Component: Rules Core » Rules Engine
Status: Active » Fixed

I solved this on my own.

I made the following steps:

1) Create a rule to be applyed when "Content is going to be saved"
2) Set this condition: if "saved content" (argument) matches certain content type
3) Set this two actions:
3.1: Load a referenced node (using a node_reference field defined at the content type)
3.2: Save content (but being very careful that I have set "referenced node" on arguments' configuration )

That's all. Hope it can be useful for anyone in the future.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.