Save a new node and then goto add node again + if I´m editing a node, disable specific cck fields... can I do those things with rules??
Hi there!
I´ve postad a support question at the issue queue of rules, but I think that maybe here I can get some help.
I need to know if these two things are "doable" with rules. If someone could guide me to actually do it, it would be great, but as I´m new with Rules, I need to know first if rules can do what I need:
1.
I´ve got content type XYZ that is a group post. When users add new content of that type and hit "save" I want them to be save the node and to be redirected to a new node create form of the same content type of the same group, for people to add new content (of the same type, for the same group they are in) without the need of go and click in "add new XYZ content".
Can I do that?
2.
The other view I need is that after creating content of type XYZ, if the user wants to edit that node (and only in the node/%/edit form and NOT node/add form), some fields will be disabled. Will appear with the original content, but will not be able to be changed.
Thanks for your help!!!
Rosamunda


Doable!
Yes those two things are doable. Both would require rules on the 'X form being built' event. Point 2 affects point 1 so I'll list it first.
Point two - The most robust way, if it fits your workflow, is to check for the presence of a required field. I have a set up where fields get turned on and off based on a status field (was using http://drupal.org/project/workflow_fields but the interface got too complex). A new node has this field unset, thereafter it is automatically updated from the on content saved event.
Point one - For this just add an action to set the form redirect target to the current url. You might have to use the php input to grab the current url unless there is a token for it (?). Its also a good idea to set a message confirming the save because most people won't naturally expect to go back into the same form they'd just completed.
Hope this helps, CD
edit Markdown reversed my numbering!
Thanks for your input!
Thanks! I think that it´s a start to get to know Rules better. Thanks for the guidance!
And if Rules can do it, maybe it´s better to use it instead of workflow_fields, I don´t want to add another extra module...
Rosamunda
Have you heard of the Add
Have you heard of the Add Another module?
Ryan Price
DrupalEasy