The Joomla! Forum ™



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.



Post new topic Reply to topic  [ 21 posts ] 
Author Message
PostPosted: Thu Oct 07, 2010 2:01 pm 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Mon Nov 30, 2009 10:48 am
Posts: 83
Location: Windsor UK
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

_________________
WiCKO
http://www.wicko.co.uk


Top
 Profile  
 
PostPosted: Thu Oct 07, 2010 2:32 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Wed Jul 09, 2008 8:25 pm
Posts: 101
Location: Amman - Jordan
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


Top
 Profile  
 
PostPosted: Thu Oct 07, 2010 3:38 pm 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Mon Nov 30, 2009 10:48 am
Posts: 83
Location: Windsor UK
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.

_________________
WiCKO
http://www.wicko.co.uk


Top
 Profile  
 
PostPosted: Fri Oct 08, 2010 3:21 am 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso

Joined: Thu Nov 09, 2006 2:46 pm
Posts: 4859
Location: Kampala, Uganda
Quote:
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:
$filter_order = 'section_name';

Change that to:
Code:
$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


Top
 Profile  
 
PostPosted: Fri Oct 08, 2010 4:21 am 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso

Joined: Thu Nov 09, 2006 2:46 pm
Posts: 4859
Location: Kampala, Uganda
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


Top
 Profile  
 
PostPosted: Fri Oct 08, 2010 4:30 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Oct 08, 2010 2:57 am
Posts: 5
Location: Lebanon
viewtopic.php?f=431&t=555123

_________________
"Leaving Nothing but the Memories" - Anathema


Top
 Profile  
 
PostPosted: Sat Apr 09, 2011 9:48 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Mar 22, 2011 5:48 pm
Posts: 33
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!

_________________
Birou Notar Public in sector 4, Bucuresti, zona Tineretului-Sincai. Servicii: autentificare contract, divort, legalizare acte, procura, succesiune: http://notariat-tineretului.net


Top
 Profile  
 
PostPosted: Sat Apr 09, 2011 10:29 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Mon Aug 29, 2005 10:17 am
Posts: 11984
Location: Netherlands/ UK/ S'pore/Jakarta/ North America
Little search gives miracles: http://docs.joomla.org/Screen.menus.edi ... log_Layout

Leo 8)

_________________
--- Joomla Professional Support Services :: http://gws-desk.com ---
--- Joomla Professional and Specialized Hosting :: http://gws-host.com ---
--- Ready to Roll Joomla! Web Sites : 1 - 7 days only! :: @ gws-market.com ---


Top
 Profile  
 
PostPosted: Sat Apr 09, 2011 11:32 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Mar 22, 2011 5:48 pm
Posts: 33
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.

_________________
Birou Notar Public in sector 4, Bucuresti, zona Tineretului-Sincai. Servicii: autentificare contract, divort, legalizare acte, procura, succesiune: http://notariat-tineretului.net


Top
 Profile  
 
PostPosted: Thu Jun 23, 2011 4:40 pm 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Mon Nov 30, 2009 10:48 am
Posts: 83
Location: Windsor UK
Thank you to all those who have commented on this post. I hope that the information here will help many other people.

_________________
WiCKO
http://www.wicko.co.uk


Top
 Profile  
 
PostPosted: Fri Nov 18, 2011 4:12 am 
Joomla! Intern
Joomla! Intern

Joined: Sat Dec 04, 2010 6:57 pm
Posts: 62
Dear jmuehleisen,

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

Regards,

jmuehleisen wrote:
Quote:
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:
$filter_order = 'section_name';

Change that to:
Code:
$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.


Top
 Profile  
 
PostPosted: Thu Mar 01, 2012 3:38 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Nov 18, 2011 4:22 am
Posts: 10
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.


Top
 Profile  
 
PostPosted: Thu Mar 01, 2012 8:26 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Feb 11, 2012 1:27 am
Posts: 39
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.


Top
 Profile  
 
PostPosted: Thu Mar 01, 2012 8:30 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Feb 11, 2012 1:27 am
Posts: 39
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:
Quote:
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:
$filter_order = 'section_name';

Change that to:
Code:
$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.


Top
 Profile  
 
PostPosted: Sat May 05, 2012 5:42 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sat Dec 17, 2011 11:27 am
Posts: 1
to set the default number of items in lists for the backend go to the global configuration and set the "default list limit"


Top
 Profile  
 
PostPosted: Mon Jun 25, 2012 12:08 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Mar 08, 2006 1:21 pm
Posts: 8
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:
parent::populateState('a.title', 'asc');


-->

Code:
parent::populateState('a.id', 'desc');   

_________________
NagreMedia - Finnish Joomla Templates and development - www.nagre.com
Finnish Joomlaportal - www.joomla.fi


Top
 Profile  
 
PostPosted: Wed Jan 09, 2013 11:27 am 
Joomla! Intern
Joomla! Intern

Joined: Tue Jan 20, 2009 8:34 am
Posts: 72
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:
parent::populateState('a.title', 'asc');


-->

Code:
parent::populateState('a.id', 'desc');   


This worked perfectly for me in J2.5.8 thank you.

_________________
http://www.horrortalk.com - The Best Horror DVD Reviews Since 2002


Top
 Profile  
 
PostPosted: Wed Feb 13, 2013 10:07 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Wed Feb 13, 2013 10:02 am
Posts: 1
Location: Gateshead
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...


Top
 Profile  
 
PostPosted: Fri Mar 08, 2013 7:12 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Mar 08, 2006 8:46 am
Posts: 24
Location: Africa
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


Top
 Profile  
 
PostPosted: Fri Mar 08, 2013 10:31 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Apr 05, 2006 3:11 pm
Posts: 28
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...


Top
 Profile  
 
PostPosted: Fri Mar 08, 2013 11:11 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Mar 08, 2006 8:46 am
Posts: 24
Location: Africa
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:
$listDirn   = $this->escape($this->state->get('list.direction'));
$saveOrder   = $listOrder == 'a.ordering';

to

Code:
$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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ] 



Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group