Back end article manager default order
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.
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.
- wicko
- Joomla! Enthusiast
- Posts: 118
- Joined: Mon Nov 30, 2009 10:48 am
- Location: Reading UK
- Contact:
Back end article manager default order
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
I am using Joomla 1.5.20
Wicko
- lindant
- Joomla! Enthusiast
- Posts: 111
- Joined: Wed Jul 09, 2008 8:25 pm
- Location: Amman - Jordan
- Contact:
Re: Back end article manager default order
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
http://www.mazajnet.com
- wicko
- Joomla! Enthusiast
- Posts: 118
- Joined: Mon Nov 30, 2009 10:48 am
- Location: Reading UK
- Contact:
Re: Back end article manager default order
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.
- jmuehleisen
- Joomla! Virtuoso
- Posts: 4874
- Joined: Thu Nov 09, 2006 2:46 pm
- Location: Kampala, Uganda
- Contact:
Re: Back end article manager default order
You can do this with a very simple change to the Joomla code.How can I sent the article manager to always display in date order in the back end?
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';
Code: Select all
$filter_order = 'created desc';
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
Visit my "Getting Started with Joomla" site, now with videos, tips, and new user tutorials: http://welcometojoomla.com
- jmuehleisen
- Joomla! Virtuoso
- Posts: 4874
- Joined: Thu Nov 09, 2006 2:46 pm
- Location: Kampala, Uganda
- Contact:
Re: Back end article manager default order
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.
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
Visit my "Getting Started with Joomla" site, now with videos, tips, and new user tutorials: http://welcometojoomla.com
- emadha
- Joomla! Apprentice
- Posts: 5
- Joined: Fri Oct 08, 2010 2:57 am
- Location: Lebanon
- Contact:
Re: Back end article manager default order
"Leaving Nothing but the Memories" - Anathema
-
- Joomla! Apprentice
- Posts: 35
- Joined: Tue Mar 22, 2011 5:48 pm
Re: Back end article manager default order
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
I'm also into making sick hip-hop beats, check them out
- leolam
- 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
Joomla's #1 Professional Services Provider:
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -
-
- Joomla! Apprentice
- Posts: 35
- Joined: Tue Mar 22, 2011 5:48 pm
Re: Back end article manager default order
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.
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
I'm also into making sick hip-hop beats, check them out
- wicko
- Joomla! Enthusiast
- Posts: 118
- Joined: Mon Nov 30, 2009 10:48 am
- Location: Reading UK
- Contact:
Re: Back end article manager default order
Thank you to all those who have commented on this post. I hope that the information here will help many other people.
-
- Joomla! Intern
- Posts: 62
- Joined: Sat Dec 04, 2010 6:57 pm
Re: Back end article manager default order
Dear jmuehleisen,
Any suggestion on J1.7? I think that Joomla really should have that function in default.
Regards,
Any suggestion on J1.7? I think that Joomla really should have that function in default.
Regards,
jmuehleisen wrote:You can do this with a very simple change to the Joomla code.How can I sent the article manager to always display in date order in the back end?
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:Change that to:Code: Select all
$filter_order = 'section_name';
Save your changes (and reupload to your server if necessary).Code: Select all
$filter_order = 'created desc';
That changes the default sort order in the article manager to be date order, with the newest articles on the top.
-
- Joomla! Apprentice
- Posts: 10
- Joined: Fri Nov 18, 2011 4:22 am
Re: Back end article manager default order
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.
Thank you.
-
- Joomla! Apprentice
- Posts: 42
- Joined: Sat Feb 11, 2012 1:27 am
Re: Back end article manager default order
Dear tislynn,
I hope you can change it under Global Configuration - Default List Limit. Good luck!
Cheers!
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.
-
- Joomla! Apprentice
- Posts: 42
- Joined: Sat Feb 11, 2012 1:27 am
Re: Back end article manager default order
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,
Regards,
jmuehleisen wrote:You can do this with a very simple change to the Joomla code.How can I sent the article manager to always display in date order in the back end?
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:Change that to:Code: Select all
$filter_order = 'section_name';
Save your changes (and reupload to your server if necessary).Code: Select all
$filter_order = 'created desc';
That changes the default sort order in the article manager to be date order, with the newest articles on the top.
-
- Joomla! Fledgling
- Posts: 1
- Joined: Sat Dec 17, 2011 11:27 am
Re: Back end article manager default order
to set the default number of items in lists for the backend go to the global configuration and set the "default list limit"
-
- Joomla! Apprentice
- Posts: 18
- Joined: Wed Mar 08, 2006 1:21 pm
Re: Back end article manager default order
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
-->
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
Finnish Joomlaportal - www.joomla.fi
-
- Joomla! Enthusiast
- Posts: 184
- Joined: Tue Jan 20, 2009 8:34 am
- Contact:
Re: Back end article manager default order
This worked perfectly for me in J2.5.8 thank you.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');
-
- Joomla! Fledgling
- Posts: 1
- Joined: Wed Feb 13, 2013 10:02 am
- Location: Gateshead
- Contact:
Re: Back end article manager default order
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...
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...
- kalemanzi
- 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.
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
Custom web development, extentions, help with migrations, help with hacked websites etc. http://www.kalemanzi.com
-
- Joomla! Apprentice
- Posts: 30
- Joined: Wed Apr 05, 2006 3:11 pm
Re: Back end article manager default order
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...
....
// List state information.
//parent::populateState('a.title', 'asc');
parent::populateState('a.id', 'desc');
.....
Brilliant ! Thanks - That has been bugging me for years...
- kalemanzi
- Joomla! Apprentice
- Posts: 28
- Joined: Wed Mar 08, 2006 8:46 am
- Location: Africa
- Contact:
Re: Back end article manager default order
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.
to
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.
Code: Select all
$listDirn = $this->escape($this->state->get('list.direction'));
$saveOrder = $listOrder == 'a.ordering';
Code: Select all
$listDirn = "desc";
$saveOrder = "a.created";
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
Custom web development, extentions, help with migrations, help with hacked websites etc. http://www.kalemanzi.com
-
- Joomla! Fledgling
- Posts: 1
- Joined: Sun Oct 05, 2014 12:48 pm
- Location: Krakow, Poland
- Contact:
Re: Back end article manager default order
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
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
-
- Joomla! Fledgling
- Posts: 2
- Joined: Tue Feb 10, 2015 7:27 am
Re: Back end article manager default order
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
http://extensions.joomla.org/extensions ... ault-order
- kalemanzi
- Joomla! Apprentice
- Posts: 28
- Joined: Wed Mar 08, 2006 8:46 am
- Location: Africa
- Contact:
Re: Back end article manager default order
Lovely, thanks! I am checking it out.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
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
Custom web development, extentions, help with migrations, help with hacked websites etc. http://www.kalemanzi.com