Comment: Order page by expiry date
| << Previous | Next >> |
Comment inspired from fw_crocodile
in articles/articles.php i've copied the function
In view, i've added
And in sections/edit.php
It seems that all work but i was guessing if i've forgotten something.....
There something else i've to do to complete the change?
list_by_date_for_anchor in list_by_expiry_date_for_anchor and changed just the $order parameter of the SQL query to have the results ordered by expiry date.In view, i've added
// list articles by date (default) or by title (option 'articles_by_title')
elseif(preg_match('/barticles_by_expiry_dateb/i', $item['options']))
$items =
Articles::list_by_expiry_date_for_anchor('section:'.$item['id'], $offset,
$items_per_page, $layout, $capability);
And in sections/edit.php
'<ul><li>articles_by_expiry_date - '.i18n::s('Sort pages by expiry date
(and not by edition date)').'</li>'
It seems that all work but i was guessing if i've forgotten something.....
There something else i've to do to complete the change?
This comment has inspired:
by Fw_crocodile on Mar. 30 2007