News module cannot "sortby"

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Aureli
Forum Members
Forum Members
Posts: 74
Joined: Wed Aug 06, 2008 10:48 pm

News module cannot "sortby"

Post by Aureli »

Hi,

I am running CMSMS 2.2.7 in my local computer with Wamp server, PHP version 7.0.29

The News module works fine and shows my news no problem. I would like them to be shown by alphabetical order but when I add "sortby" I get an error message saying that the parameter is not recognised.
Warning: Parameter sortby is not known by module CGCalendar dropped in C:\wamp\www\sandsninew\lib\classes\class.CMSModule.php on line 645
this is how I have it in a page:

Code: Select all

{CGCalendar category="Groups" sortby="news_title"}
This is how it is specified in the Module Help:
(optional) sortby="news_date" - Field to sort by. Options are: "news_date", "summary", "news_data", "news_category", "news_title", "news_extra", "end_time", "start_time", "random". Defaults to "news_date". If "random" is specified, the sortasc parameter is ignored.
Am I missing something obvious or doing something wrong?

I tried searching for this problem but only get results from old versions.

Thanks.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3483
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: News module cannot "sortby"

Post by velden »

Am I missing something obvious or doing something wrong?
Yes

{CGCalendar category="Groups" sortby="news_title"}
Aureli
Forum Members
Forum Members
Posts: 74
Joined: Wed Aug 06, 2008 10:48 pm

Re: News module cannot "sortby"

Post by Aureli »

oh my!! my head was fried this morning!! ??? ??? :'(
Post Reply

Return to “CMSMS Core”