News Module bug ? sortby="[anything]" doesn't work
Posted: Fri Aug 01, 2008 2:37 pm
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:
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:
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
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"}
If I modify the tag to read:
Code: Select all
{news category="Issue of the Day" dateformat="%B %d %Y"}
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