Order by latest post date?

Timberwoofie - June 22, 2008 - 20:02
Project:Blogger
Version:5.x-1.4
Component:Code
Category:feature request
Priority:normal
Assigned:aries
Status:needs review
Description

The new order by Date feature lists the blogs in the order they were created.
I'd like to be able to list the blogs in the order of the latest blog entry.

#1

drupal-id.com - June 23, 2008 - 01:38

Do you mean "the date where the blog published"?
Drupal has 2 fields to indicate the latest blog entry: changed and timestamp. I will find which field corresponding to your requirement.

#2

hansrossel - February 7, 2009 - 21:13

changed = updated time
timestamp = created time

so to correspond to the request you should sort by timestamp.

#3

aries - April 8, 2009 - 06:28

Hi Guys,

I'm working on configurable solution, where you can set how the module should sort. Stay tuned, it'll be ready really soon.

#4

aries - April 8, 2009 - 14:21
Version:HEAD» 5.x-1.4
Assigned to:Anonymous» aries
Status:active» needs review

Here comes the patch. I introduced a new sorting option, please check your settings under /admin/settings/blogger . I've created two patch. The smaller one is useful after my code beautification patch (http://drupal.org/node/427564), the bigger one is against the 5.x-1.4.

Sponsored by KOBA.

#5

aries - April 8, 2009 - 14:36

Sorry, I forgot to add the patches :)

AttachmentSize
blogger_changed_date_option_after_beautification.patch 2.63 KB
blogger_changed_date_option.patch 21.77 KB

#6

aries - April 14, 2009 - 11:50

I've found a bug in my patch. The list was missing under "blogger/list". Here comes the fix. Forgot to mention my fix is sponsored by KOBA.

AttachmentSize
blogger_changed_date_option_20090414.patch 21.83 KB
blogger_changed_date_option_after_beautification_20090414.patch 2.69 KB

#7

aries - April 17, 2009 - 09:09

New day, new fix :)
The lates patch fixes 3 issue:

  • The ordering on the node creation (the old feature) and changed (new feature) were buggy.
  • The pager of the blogger/list page was calculated badly when you've set up excluded users.

These are fixed.

AttachmentSize
blogger_changed_date_option_20090417.patch 22.21 KB
 
 

Drupal is a registered trademark of Dries Buytaert.