Hi David
Is it possible to add in the ability to jump to the last page of results in the code in navigation.php
Chris
Thanks David
That worked great, (whispering) had to change:
print "<a href='".$prevHREF."'>".translate("Last")."</a>";
to:
print "<a href='".$lastHREF."'>".translate("Last")."</a>";
in your code above.
Chris
Ooops - thanks! Corrected in the original above...
Cheers,
David.
--
PriceTapestry.com
Hi,
Sure - towards the end of html/navigation.php, look for the closing DIV line as follows:
print "</div>";
...and REPLACE that with:
print " | ";
if ($rewrite)
{
$lastHREF = $totalPages.".html";
}
else
{
$lastHREF = "?q=".urlencode($q)."&page=".$totalPages."&sort=".$sort;
}
if ($page <> $totalPages)
{
print "<a href='".$lastHREF."'>".translate("Last")."</a>";
}
else
{
print "<span class='disabled'>".translate("Last")."</span>";
}
print "</div>";
That's based on the distribution - I noticed that you were using different CSS classes for enabled / disabled links which you might also want to apply to the above - let me know if you're not sure...
Cheers,
David.
--
PriceTapestry.com