A fairly simple example is in mod.gallery.php around 456:
/** --------------------------------------
/** Parse page number
/** --------------------------------------*/
if (preg_match("#^P(\d+)|/P(\d+)#", $qstring, $match))
{
$current_page = (isset($match['2'])) ? $match['2'] : $match['1'];
$uristr = $FNS->remove_double_slashes(str_replace($match['0'], '', $uristr));
$qstring = $REGX->trim_slashes(str_replace($match['0'], '', $qstring));
$page_marker = TRUE;
}
You can trace $qstring up, spot how it’s defined. That help?
That helps some yes. However the big issue is that I’m trying to get our Structure module, which does similar things as the Pages module, to function with pagination.
So detecting the URI segment on the end is fairly simple however I can’t seem to figure out how/where to make that information known to the pagination lookup function that makes the weblog lookup page 2 instead of 1 etc.
Any suggestions would be greatly appreciated.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.