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!
I used to be more than happy
I used to be more than happy to seek out this internet-site.I wanted to thanks in your time for this glorious read!! I positively enjoying each little bit of it and I have you bookmarked to check out new stuff you weblog post.
220-601 braindumps
70-649 braindumps
70-270 braindumps
70-662 braindumps
So I was having a problem
So I was having a problem with this and the above observation really helped my solution, so I thought I would post my quick solution:
This is an excellent handling
This is an excellent handling of the situation as well! Infact, this should perhaps get built into the next revision to drupal views!
This is an excellent handling
This is an excellent handling of the situation as well! Infact, this should perhaps get built into the next revision to drupal views!
When we start using a new
When we start using a new platform we find some errors but one we experienced in it we can solve the major issues in it.
manual pallet jacks washington dc
Bless you for taking a few
Bless you for taking a few minutes to publish this. I understand where you are coming from on this article however , I do believe that there are more desirable solutions.
Search Engine Optimization company
Oh, error. Previous post id
Oh, error. Previous post id should be nid.
So I was having a problem
So I was having a problem with this and the above observation really helped my solution, so I thought I would post my quick solution:
In the Arguments Handling Code section under the arguments, I put this in to translate title to nid. I put in the additional filter to ensure that I wasn't getting results with the same name of a different type.
$title = $args[0];
$query = "SELECT id FROM node where title='$title' AND type=''";
$result=db_query($query);
$node=db_fetch_object($result);
$args[0]=$node->id;
return $args;
This is an excellent handling
This is an excellent handling of the situation as well! Infact, this should perhaps get built into the next revision to drupal views!
Post new comment