Posted by cangeceiro on June 25, 2008 at 8:28pm
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.