tags:

views:

402

answers:

3

In drupal views module, is there any way to access the arguements in the header or footer section?

What i need to do is show a more/[arguement-1] link in the footer section of the view. I've changed the input format to php and stuck as to how to access the views variable.

+1  A: 

If they are URL arguments can't you just use the arg() function?

Jeremy French
+4  A: 

Well, if he's using the Views Attach module, the arguments may not necessarily be available in the URL.

However, there is a method for doing this within the Views API. Below I need to access the first argument sent to the View so as to draw information out of the specified node:

$view = views_get_current_view();
$nid = $view->args[0];
$node = node_load($nid);
Grayside
In his case the third line is probably not relevant but +1 for the method.
Jeremy French
A: 

Thank you very mutch !

seren10pity