News Module bug ? sortby="[anything]" doesn't work

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
vaughnt
Forum Members
Forum Members
Posts: 82
Joined: Tue Jun 13, 2006 2:05 pm

News Module bug ? sortby="[anything]" doesn't work

Post by vaughnt »

I was trying to sort a list of news articles by Start Date, since that makes the most sense for the site I'm working on. Since I couldn't get that working, I went back and set all my post dates to be equal to my start dates.  If figured I'd just use  sortby="news_date" .

I started out wanting to sort by Start Date, but that option doesn't seem to exist. I tried sortby="start_time", thinking that might be it, but got what seemed to be random sorting. I decided to fall back to normal sortby="news_date", and just change my post dates to match my start dates.

Upon further testing, what I am finding is sort doesn't work, at least for the sort types I have tried.

Here is how I was calling the News module in my page:

Code: Select all

{news category="Issue of the Day" sortby="news_date" dateformat="%B %d %Y"}
This resulted in what seemed like random sorting. It wasn't by post date, nor by start date. 

If I modify the tag to read:

Code: Select all

{news category="Issue of the Day" dateformat="%B %d %Y"}
I get the default sort by post date.

I tested one other sort type, sortby="news_title" , since this is the only other one easy for me to test.
I got the same sort order as when I used sortby="news_date".

I am suspecting the sortby option doesn't work. Can someone else test this and see if you get the same result?  If I get confirmation I'll post it to the bug tracking system.

I am using CMSMS 1.2.5 Free Hill with News version 2.6.1, on Redhat9/Apache1.3.41/PHP4.4.8
--
My photography: http://vaughnsphotoart.com
Festiva Resorts: http://www.festiva.travel
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am
Location: Berlin

Re: News Module bug ? sortby="[anything]" doesn't work

Post by nicmare »

same problem here as well as here

no sort type does work. i wanted to sort with title. no effect
Post Reply

Return to “Modules/Add-Ons”