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

katbailey’s picture

Hi 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:

if (!$args[0]) {
  $args[0] = arg(1);
}
return $args;

... 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.

katbailey’s picture

Status: Active » Closed (fixed)
break9’s picture

I 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.

yrre7’s picture

Your code works good for me...Thanks very much