Forum
Order pages by pageModified
Is there a way to order pages by pageModified? Client wants a list of pages and modified times so they can check which pages are old and need an update.
I have tried this;
<?php
perch_pages_navigation(array(
'from-path' => '/',
'hide-extensions' => true,
'template' => 'updated.html',
'siblings' => false,
'add-trailing-slash' => true,
'include-hidden' => true,
'use-attributes' => true,
'sort' => 'pageModified',
'sort-order' => ASC
));
?>
But I don't believe sort works with perch_pages_navigation.
I could get a raw array and perhaps sort myself using PHP, but wondered if there was a simplier Perch way to do this?
Thanks, Terry
I don't think there is.
Hi Terry,
I have been trying to do exactly the same thing as you and I have come up with the following solution: ` <?php
`
Hope this helps.
Hope this helps
Thanks Richard. I had actually solved this before Christmas and here is the solution I went with.