Making views pager work in panels

Events happening in the community are now at Drupal community events on www.drupal.org.
cangeceiro's picture

So what im try to accomplish is this....

I have a panel page that needs a calendar picker for picking dates and a taxonomy drop down form. I built a view that takes url arguments for the date. in the format of calendar/%y/%m/%d. then when a user clicks the calendar picker it returns to the panel but appending the dates as args (ie calendar/2008/6/25/ ).

using the following code I am able to make my view accept these arguments

Argument Code

$args[0] = arg(1);
$args[1] = arg(2);
$args[2] = arg(3);

$view->is_cacheable = 0;
return $args;

Footer code:

<?
$arg = array(arg(1),arg(2),arg(3));
if (!$_GET['page']) { $page=1; } else { $page = $_GET['page'] + 1; }
?>
<div class="more-link">
<a href="/calendar/<?= $arg[0] ?>/<?= $arg[1] ?>/<?= $arg[2] ?>/?page=<?= $page ?>">more</a>
</div>

this all works, the problem i am having is passing this $page value back to the view so that i can go deeper into the results.

Panels

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week