I want to filter out a specified node using argument in views
drupal mind - July 10, 2008 - 05:20
| Project: | Views Argument API |
| Version: | 5.x-1.6 |
| Component: | Code |
| Category: | feature request |
| Priority: | critical |
| Assigned: | drupal mind |
| Status: | active |
Jump to:
Description
I want to filter out a specified node using argument in views. but i don't know and confuse the settings of the views argument handling option and code. please tell a whole procedure to accomplish it .

#1
Now I have way to filter any single node by using views argument
1. select the node id from list of agument and then
2. use this code into the argument handling area
if (!$args[0]) {
$args[0] = 8;
}
return $args;
if (arg(0) == 'node' && is_numeric(arg(0))) {
return array(arg(0));
}