Sort all content items in Joomla! backend PDF Print E-mail
User Rating: / 1
PoorBest 
Written by Bart Dorlandt   
Sunday, 30 December 2007 18:21

sortedbydateAnyone who has played around with Joomla for a while must have noticed that content items listed in the backend do not get sorted by date created. Instead they are sorted by section, then category and lastly by date created!

That is not a big deal if you have a corporate or personal website, with content getting updated rarely! But if you run a news website, with multiple sections/categories and a considerable amount of content items added every day, it is a big deal!!

Is there a settings/configuration solution on this issue? No, Joomla does not support such ordering at the moment! Sorry...

So what can we do to force the backend admin to list all our content items (articles) by date created and make our life easier? Well, we'll just have to hack one line of code and that's it!

Just open the file administrator/components/com_content/admin.content.php and at about line 150, you replace this code:

$order = "\n ORDER BY s.title, c.catid, cc.ordering, cc.title, c.ordering";

with this one:

// comment out below for backup reasons, then add new line of code 
// $order = "\n ORDER BY s.title, c.catid, cc.ordering, cc.title, c.ordering";
$order = "\n ORDER BY c.created DESC";

Now, all content items listed in the "Content Items Manager" will display purely by date created.

The advantages of this hack are obvious, I guess! Have fun!

 

(thanks to joomlaworks.gr

Last Updated on Sunday, 30 December 2007 18:33
 


Related items: