Hidehisa Watch
Dec 8, 2008
2:57am
Passing Arguments to views inside panel | groups.drupal.org
I have managed to do this
The only way i have managed to do it, set the panel view parameters as “input on pane config”
and leave it empty in the panel pane config
view setting :
set the arguments to the view (i have set 3 : termid, date, rss feed)
check the arguments send in the url and set the view argument
if ($view->build_type == 'block' && arg(1) ) {
$args[1] = arg(1);
} elseif (!$args[1]) {
$args[1] = "@P1W"; // filter the events for the next week only
}
$view->is_cacheable = 0;
return $args;this small code helped me debug the view arguments , set the header to
<?php
print '<div align="left">';
print '<br/>arg-0 :' .arg(0);
print '<br/>arg-1 :' .arg(1);
print '<br/>arg-2 :' .arg(2);
print '<br/>q:' . $_GET['q'];
$view = $GLOBALS['current_view'];
$args = $view->args;
print '<br/>args-0 :' .$args[0];
print '<br/>args-1 :' .$args[1];
print '</div>';
?>hope this will help someone
Page 1 of 1