Handling views' arguments

gkanski - January 13, 2009 - 17:58
Project:Timeline
Version:6.x-2.x-dev
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Dear All,
I'm using Drupal 5 with Timeline 1.2. I want to control (filter) the nodes the timeline is rendering using taxonomy terms. It looks like the timeline view is ignoring arguments. I tried "Arguments Code Handling", I tested both page and block view with no luck. As result I'm always getting all the nodes regardless their taxonomy terms. Changing the type of view (list or table instead of timeline) gives me the limited (as expected) list of nodes according to the taxonomy term. I would appreciate the lead how to make it work - I can't believe that the arguments mechanism is omited on purpose.

#1

gkanski - January 22, 2009 - 19:19

The point is that it works if I hard-code the term's ID (in my example 123). This is the example of the block view.

$args[0] = "123";
return $args;

and it stops when I use the following:
$args[0] = arg(2);
return $args;

Maybe this is the problem of AJAX or arg() function ?
I have compared HTML source of both pages (clearing cache in the meantime) and they are identical. I have no clue what is going on ...

#2

xamanu - July 24, 2009 - 03:48
Version:5.x-1.x-dev» 6.x-2.x-dev

Targeting Timeline 6.x-2.x branch.

#3

xamanu - August 18, 2009 - 17:53
Status:active» fixed

No problems using views' arguments with the new 2.x version.

#4

System Message - September 1, 2009 - 18:00
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.