Posted by drupalmind on July 10, 2008 at 5:20am
Jump to:
| Project: | Views Argument API |
| Version: | 5.x-1.6 |
| Component: | Code |
| Category: | feature request |
| Priority: | critical |
| Assigned: | drupalmind |
| Status: | active |
Issue Summary
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 .
Comments
#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));
}