drupal 5 views node reference variable
NOTE: This is a very old migrated blog post. It may have incorrect formatting.Alright so this is a simple drupal problem. If you come at the problem with the wrong midset (as I did) you'll find yourself quite stumped. The problem: You have a node with a node reference field (CCK). You then have a view, in which the argument you want to pass is the node reference. The confusion you have is that you cant type in viewname/title-of-node, where title-of-node is the variable passed through the argument, and it doesn't work! The confusion as well is that when you display the fields value, it is title-of-node as well. So if the argument matches the variable for that field? Why isn't it sorting? The Solution: While the CCK field stores the node title that it references, Views doesn't work on that. You need to pass the views argument the NODE ID, not the NODE TITLE. Simple problem, with no solution published on google. Go figure. Anyways, here's your answer!