Access the Drupal views argument in the same header or footer section.

Is there a way in drupal's view module to access arguments in the header or footer section?

What I need to do is show the link / [arguement-1] in the view footer section. I changed the input format to php and I was fixated on how to access the views variable.

+3
source share
2 answers

Well, if it uses the Views Attach module , the arguments may not necessarily be available in the URL.

API . , , node:

$view = views_get_current_view();
$nid = $view->args[0];
$node = node_load($nid);
+5

URL, arg()?

+1

Source: https://habr.com/ru/post/1722424/


All Articles