By Anonymous (not verified) on
Hello,
I maintain a database with thousands of records, and every year we have to update those records quickly and efficiently. One of the people that updates the database is asking me if it is possible to search for a record by a unique ID. So I thought to myself, that's easy you can just type in node/nid# after the url but it seems to complicated for them. So I was wondering if it is possible to create a views filter to query by node id so you just type in the nid and it brings up the corresponding record.
Thanks,
tristan.oneil
Comments
Yes, a start create a new
Yes, a start create a new view
Set row style to node
Add a filter on "Node: nid", set operator to "Is equal to", value to 0 (zero) and expose.
Add a page view, give it path.
Save the view.
Visit the path for your new view, type a valid node id and submit, you will see the viewable node.
Alternatively you could add a filter on node title which seems friendlier to me.
Sorry I didn't make it more
Sorry I didn't make it more clear but I believe you can only do this in Drupal 6. How would I go about doing this in Drupal 5, there is no filter option for Node:nid in Drupal 5.
Thanks,
tristan.oneil