Back end article manager default order

Need help with the Administration of your Joomla! 1.5 site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
User avatar
wicko
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 118
Joined: Mon Nov 30, 2009 10:48 am
Location: Reading UK
Contact:

Back end article manager default order

Post by wicko » Thu Oct 07, 2010 2:01 pm

How can I sent the article manager to always display in date order in the back end? Currently when I open the article manager the list in Section order then category. I know that I can simply press the date button to change the order but it would be much better if I could just login and go straight back to the most recent articles.

I am using Joomla 1.5.20

Wicko

User avatar
lindant
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 111
Joined: Wed Jul 09, 2008 8:25 pm
Location: Amman - Jordan
Contact:

Re: Back end article manager default order

Post by lindant » Thu Oct 07, 2010 2:32 pm

i'm not sure theres an option for that, but i know there's a module in the control panel of the backend.. right exactly when you login the module "Recent added Articles" is in the right panel.. you can manage to display (enable/disable) any module in the admin control panel in module manager>administrator modules
We are blessed with Joomla!
http://www.mazajnet.com

User avatar
wicko
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 118
Joined: Mon Nov 30, 2009 10:48 am
Location: Reading UK
Contact:

Re: Back end article manager default order

Post by wicko » Thu Oct 07, 2010 3:38 pm

Yeah I see that module. But I need to set the default in the back end in the article manager to date order. I have other people login to write articles and they all complain about having to reorder the article menu every time they login.

User avatar
jmuehleisen
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4874
Joined: Thu Nov 09, 2006 2:46 pm
Location: Kampala, Uganda
Contact:

Re: Back end article manager default order

Post by jmuehleisen » Fri Oct 08, 2010 3:21 am

How can I sent the article manager to always display in date order in the back end?
You can do this with a very simple change to the Joomla code.

Open the following file with a text editor (after making a backup copy of it first, of course)

/administrator/components/com_content/controller.php

Look around line 82 for the following line:

Code: Select all

$filter_order = 'section_name';
Change that to:

Code: Select all

$filter_order = 'created desc';
Save your changes (and reupload to your server if necessary).

That changes the default sort order in the article manager to be date order, with the newest articles on the top.
John Muehleisen
Visit my "Getting Started with Joomla" site, now with videos, tips, and new user tutorials:  http://welcometojoomla.com

User avatar
jmuehleisen
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4874
Joined: Thu Nov 09, 2006 2:46 pm
Location: Kampala, Uganda
Contact:

Re: Back end article manager default order

Post by jmuehleisen » Fri Oct 08, 2010 4:21 am

Just a thought after reading some other recent threads on this topic.

You could also do the sort on the "modified" date rather than the created date. That way a recently edited article would also be put near the top of the articles listing.
John Muehleisen
Visit my "Getting Started with Joomla" site, now with videos, tips, and new user tutorials:  http://welcometojoomla.com

User avatar
emadha
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Fri Oct 08, 2010 2:57 am
Location: Lebanon
Contact:

Re: Back end article manager default order

Post by emadha » Fri Oct 08, 2010 4:30 am

"Leaving Nothing but the Memories" - Anathema

dezea
Joomla! Apprentice
Joomla! Apprentice
Posts: 35
Joined: Tue Mar 22, 2011 5:48 pm

Re: Back end article manager default order

Post by dezea » Sat Apr 09, 2011 9:48 am

jmuehleisen: this works great for the backend, but is there any way to change the default order for the category articles listing in frontend ? thank you!
Contact me via PM for Joomla developement, php coding, Joomla webpage speedup etc.
I'm also into making sick hip-hop beats, check them out

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 20652
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ Germany/ S'pore/Bogor/ North America
Contact:

Re: Back end article manager default order

Post by leolam » Sat Apr 09, 2011 10:29 am

Joomla's #1 Professional Services Provider:
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -

dezea
Joomla! Apprentice
Joomla! Apprentice
Posts: 35
Joined: Tue Mar 22, 2011 5:48 pm

Re: Back end article manager default order

Post by dezea » Sat Apr 09, 2011 11:32 am

Leolam: I know that.
But, I do not have the categories linked to a menu, I am manually linking to them. In this situation, the default order will be used whatsoever. What I am asking is, how can I change the default order.. imho this needs some .php file editing just like for the back-end.
Contact me via PM for Joomla developement, php coding, Joomla webpage speedup etc.
I'm also into making sick hip-hop beats, check them out

User avatar
wicko
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 118
Joined: Mon Nov 30, 2009 10:48 am
Location: Reading UK
Contact:

Re: Back end article manager default order

Post by wicko » Thu Jun 23, 2011 4:40 pm

Thank you to all those who have commented on this post. I hope that the information here will help many other people.

pearlcaviar
Joomla! Intern
Joomla! Intern
Posts: 62
Joined: Sat Dec 04, 2010 6:57 pm

Re: Back end article manager default order

Post by pearlcaviar » Fri Nov 18, 2011 4:12 am

Dear jmuehleisen,

Any suggestion on J1.7? I think that Joomla really should have that function in default.

Regards,
jmuehleisen wrote:
How can I sent the article manager to always display in date order in the back end?
You can do this with a very simple change to the Joomla code.

Open the following file with a text editor (after making a backup copy of it first, of course)

/administrator/components/com_content/controller.php

Look around line 82 for the following line:

Code: Select all

$filter_order = 'section_name';
Change that to:

Code: Select all

$filter_order = 'created desc';
Save your changes (and reupload to your server if necessary).

That changes the default sort order in the article manager to be date order, with the newest articles on the top.

tislynn
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Fri Nov 18, 2011 4:22 am

Re: Back end article manager default order

Post by tislynn » Thu Mar 01, 2012 3:38 am

I need to set the maximum per page shown in Article Manager. It keeps trying to show all and then i get fatal memory crashes. I want it to default to only show 20. Does anyone know how to accomplish that?

Thank you.

exoduser
Joomla! Apprentice
Joomla! Apprentice
Posts: 42
Joined: Sat Feb 11, 2012 1:27 am

Re: Back end article manager default order

Post by exoduser » Thu Mar 01, 2012 8:26 am

Dear tislynn,
I hope you can change it under Global Configuration - Default List Limit. Good luck!

Cheers!
tislynn wrote:I need to set the maximum per page shown in Article Manager. It keeps trying to show all and then i get fatal memory crashes. I want it to default to only show 20. Does anyone know how to accomplish that?

Thank you.

exoduser
Joomla! Apprentice
Joomla! Apprentice
Posts: 42
Joined: Sat Feb 11, 2012 1:27 am

Re: Back end article manager default order

Post by exoduser » Thu Mar 01, 2012 8:30 am

Is this still apply to Joomla 2.5? I'm just wondering why the Joomla Developer doesn't put the default list to latest article.

Regards,
jmuehleisen wrote:
How can I sent the article manager to always display in date order in the back end?
You can do this with a very simple change to the Joomla code.

Open the following file with a text editor (after making a backup copy of it first, of course)

/administrator/components/com_content/controller.php

Look around line 82 for the following line:

Code: Select all

$filter_order = 'section_name';
Change that to:

Code: Select all

$filter_order = 'created desc';
Save your changes (and reupload to your server if necessary).

That changes the default sort order in the article manager to be date order, with the newest articles on the top.

mesammy
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sat Dec 17, 2011 11:27 am

Re: Back end article manager default order

Post by mesammy » Sat May 05, 2012 5:42 pm

to set the default number of items in lists for the backend go to the global configuration and set the "default list limit"

naghris
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Wed Mar 08, 2006 1:21 pm

Re: Back end article manager default order

Post by naghris » Mon Jun 25, 2012 12:08 pm

Just searched this and did not find an answer. Tested myself and this seems to work

administrator/components/com_content/models/articles.php

row 97

Code: Select all

parent::populateState('a.title', 'asc');
-->

Code: Select all

parent::populateState('a.id', 'desc');	
NagreMedia - Finnish Joomla Templates and development - www.nagre.com
Finnish Joomlaportal - www.joomla.fi

DJBenz
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 184
Joined: Tue Jan 20, 2009 8:34 am
Contact:

Re: Back end article manager default order

Post by DJBenz » Wed Jan 09, 2013 11:27 am

naghris wrote:Just searched this and did not find an answer. Tested myself and this seems to work

administrator/components/com_content/models/articles.php

row 97

Code: Select all

parent::populateState('a.title', 'asc');
-->

Code: Select all

parent::populateState('a.id', 'desc');	
This worked perfectly for me in J2.5.8 thank you.

tr10_iain
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Feb 13, 2013 10:02 am
Location: Gateshead
Contact:

Re: Back end article manager default order

Post by tr10_iain » Wed Feb 13, 2013 10:07 am

Other options include:

a.id, a.title, a.alias, a.checked_out, a.checked_out_time, a.catid, a.state, a.access, a.created, a.created_by, a.created_by_alias, a.ordering, a.featured, a.language, a.hits

Go nuts...

User avatar
kalemanzi
Joomla! Apprentice
Joomla! Apprentice
Posts: 28
Joined: Wed Mar 08, 2006 8:46 am
Location: Africa
Contact:

Don't edit the core files! Use a template override.

Post by kalemanzi » Fri Mar 08, 2013 7:12 am

I thought I had figured out how to use a template override, but now it does not seem to work. I will try to get it right and post the solution if I get it! Sorry for a useless post. ;-)
There are 10 types of people. Those who understand Binary, and those who don't.
Custom web development, extentions, help with migrations, help with hacked websites etc. http://www.kalemanzi.com

simonron
Joomla! Apprentice
Joomla! Apprentice
Posts: 30
Joined: Wed Apr 05, 2006 3:11 pm

Re: Back end article manager default order

Post by simonron » Fri Mar 08, 2013 10:31 am

In J2.5.9 the line to change is 99

....
// List state information.
//parent::populateState('a.title', 'asc');
parent::populateState('a.id', 'desc');
.....

Brilliant ! Thanks - That has been bugging me for years...

User avatar
kalemanzi
Joomla! Apprentice
Joomla! Apprentice
Posts: 28
Joined: Wed Mar 08, 2006 8:46 am
Location: Africa
Contact:

Re: Back end article manager default order

Post by kalemanzi » Fri Mar 08, 2013 11:11 am

Trying to avoid doing a core hack as above, I tried making a template override of administrator/components/com_content/views/articles/tmpl/default.php and saving it to the html/com_content/ inside the admin template folder.

Code: Select all

$listDirn	= $this->escape($this->state->get('list.direction'));
$saveOrder	= $listOrder == 'a.ordering';
to

Code: Select all

$listDirn = "desc";
$saveOrder = "a.created";
but this did not affect the order as I thought it would.

Even if I print_r($saveOrder); it will show the current value. when I changed the ordering, showed the new values, but it does not affect the ordering. I don't know if there are session vars of javascript involved which stops it from using the value I manually added.

In the end I gave up and just did a core hack for now.
There are 10 types of people. Those who understand Binary, and those who don't.
Custom web development, extentions, help with migrations, help with hacked websites etc. http://www.kalemanzi.com

JabbyPanda
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sun Oct 05, 2014 12:48 pm
Location: Krakow, Poland
Contact:

Re: Back end article manager default order

Post by JabbyPanda » Sun Oct 05, 2014 12:52 pm

Just wanted all you know Joomla 3 includes the change default sorting for articles list in article manager using exactly same solution discussed above.

So, all existing users of Joomla 2.5 and below, do not hesitate to use this solution, it is solid and approved by Joomla team ;)

phobia82
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Feb 10, 2015 7:27 am

Re: Back end article manager default order

Post by phobia82 » Tue Feb 10, 2015 7:31 am

This has been a request for so long, so I decided to code a simple plugin to avoid changing the core files, working from 2.5 to 3.3.6 so far:

http://extensions.joomla.org/extensions ... ault-order

User avatar
kalemanzi
Joomla! Apprentice
Joomla! Apprentice
Posts: 28
Joined: Wed Mar 08, 2006 8:46 am
Location: Africa
Contact:

Re: Back end article manager default order

Post by kalemanzi » Tue Feb 10, 2015 7:48 am

phobia82 wrote:This has been a request for so long, so I decided to code a simple plugin to avoid changing the core files, working from 2.5 to 3.3.6 so far:

http://extensions.joomla.org/extensions ... ault-order
Lovely, thanks! I am checking it out.
Completely forgot about this.
There are 10 types of people. Those who understand Binary, and those who don't.
Custom web development, extentions, help with migrations, help with hacked websites etc. http://www.kalemanzi.com


Locked

Return to “Administration 1.5”