By foredoc on
Hi,
1)I have a page, the path is "main/param_name1/value1/param_name2/value2"
2)I have a link on this page, say "add new story"
3)When I click this link, it leads to node/add/story
What I want to do is :
After submit the story, I want to return back to "main/param1/value1/param2/value2" automatically, or give a link which enable me to go back.
I have no idea how to do this. Any suggestions? Thanks.
Hang
Comments
Any one know this?
Any one know this?
Is this possible?
Is this possible?
Give this a try
Create a block to put your "Add new story" link in, and only show it for the roles you want to be able to add new stories to your site.
Then put this in the block
return l("Add new story", "node/add/story", NULL, drupal_get_destination());Make sure you select php code as the input format and that should be it!
G
It seems not working(error
It seems not working(error occured). I checked the "l" function,
http://api.drupal.org/api/function/l/6
There is only three parameters as input.
:(
I have done it! :)
I don't know how to write the patch file, but I write the simple steps to do this
now, when you will pass the forth parameter that is query like:
Then it will output like:
Hope this will help someone