Page 1 of 1

News module cannot "sortby"

Posted: Tue Jun 19, 2018 12:14 pm
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.

Re: News module cannot "sortby"

Posted: Tue Jun 19, 2018 12:48 pm
by velden
Am I missing something obvious or doing something wrong?
Yes

{CGCalendar category="Groups" sortby="news_title"}

Re: News module cannot "sortby"

Posted: Tue Jun 19, 2018 8:31 pm
by Aureli
oh my!! my head was fried this morning!! ??? ??? :'(