[solved]CGBlog sort by 'cgblog_extra' and then by descending
Posted: Thu Mar 27, 2014 2:51 pm
Is there a way to first sort articles by the extra field and then by the descending date? I have several snippets like this on the site:
This is done so that by putting '1' into the extra field the article is diplayed on the homepage as a featured article (can't use a separate category for it for several reasons).
The issue with this is that the module sorts the articles by the extra field and then by the ascending date. So when two articles have 1 in the extra field, the module shows the oldest one as oppsoed to the newest. I've tried using 'sortorder=desc' or 'sortasc=false' and it doesn't works. In the module options I have Default Sorting set to Article Date and Default Sortorder set to Descending.
Any help is appreciated, versions I am using...
CMSMS 1.11.8
CGBlog 1.10.3
Code: Select all
{CGBlog category='Mercado' number='1' summarytemplate='summary_quarter' sortby='cgblog_extra'}The issue with this is that the module sorts the articles by the extra field and then by the ascending date. So when two articles have 1 in the extra field, the module shows the oldest one as oppsoed to the newest. I've tried using 'sortorder=desc' or 'sortasc=false' and it doesn't works. In the module options I have Default Sorting set to Article Date and Default Sortorder set to Descending.
Any help is appreciated, versions I am using...
CMSMS 1.11.8
CGBlog 1.10.3