can an user be redirected to the referenced node after creating a node ?
| Project: | Viewfield |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | tommytom |
| Status: | closed |
Jump to:
I have a small problem with this module.
I have 2 content types, one is refered to another.
In the parent node I have one field that shows his child nodes (you can do it with viewfield module and views).
On the child node I have a node reference field (to the parent node) with widget type: Reference from URL.
Thanks to that widget, on the parent node I have a link which enables me to create automaticly a child node to the parent node.
The widget "Reference from URL" autopopulates the reference field on child node to the parent node.
That's great. But after creating the child node drupal redirects me to the child node that I have created.
And I don't want that. I want that drupal redirects the user to the parent node after creating a child node.
I was searching on drupal.org but I couldn't find any information.
Does anybody know how to do it ?
Here is an example:
2 content types: teacher, student .
On the teacher node you see a list of student .
Thanks to the widget 'Reference from URL', on the bottom of the teachers node you have a link: ADD A NEW STUDENT .
After creating a new student you see the node of the new student.
How to do it, so after creating a new student you see the teachers node and not the student node that you just created.

#1
I found a solution: http://drupal.org/node/383138
#2