Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
I have the same need. I just want a "Search" block that when someone enters the node id, Drupal will go to the "www.yoursite.com/node/nid" URL, where the nid in the URL is the node ID the person entered.
I can't see that it can be very difficult, but I am stumped.
Comments
...
Let's assume the node ID is 9667.
You simple navigate to the 'http://drupal.org/node/9667' URL.
Thanks
Thanks moofie, I didn't explain myself properly. I have a block that contains a search form
and a View that when the user enters an id - say 9667 I want the view to return www.example.com/node/9667. The views URL is 'search/$arg'
Hi All I have the same need.
Hi All
I have the same need. I just want a "Search" block that when someone enters the node id, Drupal will go to the "www.yoursite.com/node/nid" URL, where the nid in the URL is the node ID the person entered.
I can't see that it can be very difficult, but I am stumped.
Any help will be VERY welcome! :-)
PROBLEM SOLVED!!!
Just in case anybody else runs across this problem, I got it resolved.
The solution is:
1 - Download and install the Webform module from here: http://drupal.org/handbook/modules/webform
2 - Read up on the URL redirection here: http://drupal.org/node/257100
If you are then interested in adding this functionality to a Block, copy the following into the Block body (with PHP enabled):
Just change the "42" above into the relevant node for your site...
If you want the Title, remove the "$node->title = NULL;".
Implemented for www.prorealty.co.za
I hope somebody else can find this useful..