Hi,
i have to insert a dynamic header (different titles and images) in my view depend of the arguments:
In section "Header" of my View I can use Php code (only HTML), so i use another display template for my view.

I create file: views-view--NameOfMyView.tpl.php and i connect it at my view.

I can't find the variable that return me the Args,
i tried to use:

print $args[0].$args[1];

but these are empty...

the url of my view is: sitename.it/?q=NameOfMyView/argoment1/argoment2 (it's work correctly)

How can I extract from php the args?

Thank you very much!
Sam

Comments

mndonx’s picture

I believe you could write it:

print arg(0) . arg(1);

Amanda

overaph’s picture

Thank you very much!!
It's work!
bye