Bugs In News Module Found

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am
Location: London

Bugs In News Module Found

Post by applejack »

I have come across a number of bugs in the News module v2.6.1.

sortby="news_category" option does not work. Whether or not this is because of using the browsecat function I don't know but surely the point of sortby="news_category" is to use it for that very purpose.

Also if I have e.g.

Latest News
{news browsecat="1" browsecattemplate="browsecat.tpl" sortby="news_category" detailpage="articles" detailtemplate="detailed.tpl" summarytemplate="summary.tpl"}

Archive News
{news browsecat="1" browsecattemplate="browsecat.tpl" showarchive="1" sortby="news_category" detailpage="articles" detailtemplate="detailed.tpl" summarytemplate="summary.tpl"}

In the archive news listing if there is only one article in a category and even though the article has not expired the category link becomes active but of course if one clicks on it then the summary page is empty.

The counter function to show the number of articles does not understand if an article is expired or not i.e. both latest news and archived news shows the same count number next to each category.

All templates are the standard ones.

Website Design & Production
http://www.applejack.co.uk
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Bugs In News Module Found

Post by calguy1000 »

The docs don't say it, but the sortby parameter does not work in browsecat mode.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am
Location: London

Re: Bugs In News Module Found

Post by applejack »

Hi Calguy

OK re the sort any plans to include this as part of the browsecat function? What about the counter and the show archive issue as I don't think my client is going to be too happy about this?

Website Design & Production
http://www.applejack.co.uk
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm
Location: Comox Valley, BC

Re: Bugs In News Module Found

Post by Nullig »

You can edit the action.browsecat.php file to change:

Code: Select all

$query .= ' ORDER by hierarchy';
to:

Code: Select all

$query .= ' ORDER by long_name';
Nullig
Post Reply

Return to “Developers Discussion”