15 Jun 2009 @ 7:43 AM 
 

Category View articles not in the right order in Joomla

 

Information on this problem seems sparse or spread around, so I thought I’d post it here.

I upgrade last week to Joomla 1.5.11

We noticed the problem of Category Blog not showing in proper order after that.

It was stuck on Order no matter how I configured the Category and Primary Order.
I set it to Primary order only, then Primary to most recent. Even which I changed this around, it remained in order.
I changed to multiple templates and it was stuck on Order.
I changed it from Blog view to List View and it was stuck on Order.

I finally looked at the 1.5.11 patch

This was added to:
components/com_content/models/category.php

Code:

 if ($filter_order && $filter_order_Dir)
 {
 $orderby .= $filter_order .' '. $filter_order_Dir.', ';
 }
+       elseif($filter_order == '' && $filter_order_Dir == '')
+      {
+            $filter_order='a.ordering';
+            $filter_order_Dir='ASC';
+            $orderby .= $filter_order .' '. $filter_order_Dir.', ';
+      }

I removed the added lines and it works again – selecting by most recent first.

It looks like they removed the code for the next patch
#15541 http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=15541

Commit

http://joomlacode.org/gf/project/joomla/scmsvn/?action=browse&path=%2F&view=rev&revision=12028

Tags Tags: ,
Categories: Joomla
Posted By: drapetomaniac
Last Edit: 15 Jun 2009 @ 07 43 AM

EmailPermalink
 

Responses to this post » (One Total)

 
  1. Ferns says:

    thanks for the fix!

Post a Comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.

\/ More Options ...
Change Theme...
  • Users » 2
  • Posts/Pages » 32
  • Comments » 1
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight

About



    No Child Pages.