Members: 16,996
Threads: 38,846
Posts: 159,391
Online: 26

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse

Go Back   Mambers.com > Mambo 4.5.1 > Mambo 4.5.1 'How Do I' Questions

Reply
 
LinkBack Thread Tools Display Modes
Old 09.11.2004, 04:30   #1 (permalink)
Baby Mamber
 
Nethawk's Avatar
 
Join Date: Jul 2004
Location: Austria
Posts: 13
Nethawk is on a distinguished road
Default Order backend news items by publishing date (descending)

Greetings

I've got a little problem here.

Like many others I have a section called "News" which contains many sub-categories like "life", "games", "work" etc.

After a new news-item is published the mambo admin backend sorts and displays it first by category and afterwards by ID (descending).

For Example:

Title: News 3 -- Category: Games -- ID 3
Title: News 2 -- Category: Games -- ID 2
Title: News 1 -- Category: Games -- ID 1
Title: News 4 -- Category: Work -- ID 4
Title: News 5 -- Category: Life -- ID 5

Unfortunately I don't want it to behave like this!

I just want mambo to order the items by its ID (descending).

For Example: (Sames as above but reordered)

Title: News 5 -- Category: Life -- ID 5
Title: News 4 -- Category: Work -- ID 4
Title: News 3 -- Category: Work -- ID 3
Title: News 2 -- Category: Games -- ID 2
Title: News 1 -- Category: Games -- ID 1

Does anybody know how I can achieve this?
Please note: The frontend ordering is okay! It's just that backend which drives me crazy.

I searched the whole board and found some threads like this one:
Changing the content listing sort order

Unfortunately the content.php hack doesn't work with Mambo 4.5.1a stable.

Any ideas?

Help would be appreciated.

Thanks a lot
Nethawk is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 09.11.2004, 16:48   #2 (permalink)
Baby Mamber
 
Nethawk's Avatar
 
Join Date: Jul 2004
Location: Austria
Posts: 13
Nethawk is on a distinguished road
Default Re: Order backend news items by publishing date (descending)

Okay, I fixed it quick and dirty.

For those who are interested:

Open /administrator/components/com_content/admin.content.php

Jump to line 167 and replace the following

Code:
$order = "\n ORDER BY cc.ordering, cc.title, c.ordering";
with

Code:
$order = "\n ORDER BY created DESC, cc.ordering, cc.title, c.ordering";
Tested on mambo 4.5.1a

It would be great if the next release of mambo would support backend reordering options for specific sections/categories out of the box, because this hack modifies the backend section display globally

Thanks
Nethawk is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 14.02.2005, 01:18   #3 (permalink)
Baby Mamber
 
Join Date: Jun 2004
Posts: 24
Bi4a is on a distinguished road
Default Re: Order backend news items by publishing date (descending)

thanks mate i also was lookin for that solution.
Tested on mambo 4.5.1
Bi4a is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06.03.2005, 21:34   #4 (permalink)
doc
Junior Mamber
 
Join Date: Jan 2005
Posts: 42
doc is on a distinguished road
Default Re: Order backend news items by publishing date (descending)

Quote:
Originally Posted by Nethawk
Okay, I fixed it quick and dirty.

For those who are interested:

Open /administrator/components/com_content/admin.content.php

Jump to line 167 and replace the following

Code:
$order = "\n ORDER BY cc.ordering, cc.title, c.ordering";
with

Code:
$order = "\n ORDER BY created DESC, cc.ordering, cc.title, c.ordering";
Tested on mambo 4.5.1a

It would be great if the next release of mambo would support backend reordering options for specific sections/categories out of the box, because this hack modifies the backend section display globally

Thanks
Hi! I am wrestling with the same problem, but I do not understand some basic aspects of MOS. At the backend, there are to options to assign an order to an item. One is available underder Parameter when one is editing an item. The other by using the up and down arrows in the list. How come that MOS does not pick up these settings and stick to it.

Do you know any hack that would do just that if MOS misses out on it?

Thanks,

--doc
doc is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I sort news items by category? darkgumby Mambo 4.5.1 'How Do I' Questions 0 04.11.2004 17:49
News Publishing MarkM Mambo 4.5.1 'How Do I' Questions 0 20.10.2004 07:25
Different styles of News items in startpage asci Mambo 4.5.1 'How Do I' Questions 1 04.10.2004 22:24
Frontpage News Items scotttt Mambo 4.5 'How Do I' Questions 1 11.09.2004 00:31
How do I change the default order of content items display Robert Mambo 4.5 'How Do I' Questions 1 10.09.2004 14:42


All times are GMT +2. The time now is 14:11.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.