Closed (fixed)
Project:
Quick Tabs
Version:
5.x-1.1
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Apr 2008 at 03:40 UTC
Updated:
4 Feb 2009 at 21:46 UTC
I see were I can put in the arguments, but only thing that seems to work is hard coding the value. I need to put a dynamic argument from the url in. Can this be done?
Comments
Comment #1
katbailey commentedHi there,
you can do this the same way you would with a regular block view: use argument handling code to tell the view where to find the argument. So, for example, when building your view you could put in something like:
... to say that you want a particular part of the url to be used as an argument. This is explained in more detail here.
Then you don't pass in any arguments via quicktabs.
Comment #2
katbailey commentedComment #3
break9 commentedI had the same problem. This is what I did:
global $current_view;
if (!$args[0]) {
$args[0] = ($current_view->args[0]);
}
return $args;
I pulled the variables from the parent into the view then pulled the first arg from the url and assigned it to $args. Seems to work.
Comment #4
yrre7 commentedYour code works good for me...Thanks very much