Active
Project:
Views Argument API
Version:
5.x-1.6
Component:
Code
Priority:
Critical
Category:
Feature request
Assigned:
Reporter:
Created:
10 Jul 2008 at 05:20 UTC
Updated:
10 Jul 2008 at 10:39 UTC
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
Comment #1
drupalmind commentedNow 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));
}