Is there any built-in field that would return a page's index/sorted number? As far as I know what I'm looking for doesn't strictly fall under pagination (apologies if I'm incorrect about this). I currently have a parent page with n child pages, these are sorted by date (custom date field).
e.g. Gamma (2014) Alpha (2013) Omega (2012)
Beta (2011)
So on page Gamma, I want to be able to return the int 1. Alpha, return int 2, Omega, return int 3, etc. (These would obviously change if the date field was modified). Is there any simple way to do this? Thanks. EDIT: Not sure if this was in the right forum. Managed to get it working, although there may be a simpler way, code for anyone interested:
$a = $page->siblings('include=all');
foreach($a as $b) {
$i++;
if ($b == $page) {
echo $i;
}
}