1
dannie
In Publisher Module how can I sort last published articles by date asc instead of date desc?
  • 2015/10/26 13:28

  • dannie

  • Just popping in

  • Posts: 36

  • Since: 2004/2/10


I am using publisher to post bible verses and I need the last published articles to sort by date asc instead of date desc so that the verses can be read from verse 1 and upwards instead of from verse 235 and backward. Is this possible and where can I make the changes. Thanks in advance.Resized Image

2
Mamba
Re: In Publisher Module how can I sort last published articles by date asc instead of date desc?
  • 2015/10/26 21:34

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


The easiest way for you would be to set the weight of each article the way you want them to be, and then is Preferences, select "Weight ASC", and you're done.
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

3
Bleekk
Re: In Publisher Module how can I sort last published articles by date asc instead of date desc?
  • 2015/10/28 12:44

  • Bleekk

  • Theme Designer

  • Posts: 941

  • Since: 2002/12/14


Open in a editor "modules/publisher/index.php"

Find
if ($publisher->getConfig('index_display_last_items')) {
    
// creating the Item objects that belong to the selected category
    
switch ($publisher->getConfig('format_order_by')) {
        case 
'title':
            
$sort  'title';
            
$order 'ASC';
            break;

        case 
'date':
            
$sort  'datesub';
            
$order 'DESC';
            break;

        default:
            
$sort  'weight';
            
$order 'ASC';
            break;
    }


Change order in
case 'date':
            
$sort  'datesub';
            
$order 'DESC';
            break;

to ASC

4
dannie
Re: In Publisher Module how can I sort last published articles by date asc instead of date desc?
  • 2015/10/30 10:15

  • dannie

  • Just popping in

  • Posts: 36

  • Since: 2004/2/10


Thank you very much. This worked.

Login

Who's Online

334 user(s) are online (210 user(s) are browsing Support Forums)


Members: 0


Guests: 334


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits