Hi,
For a section, for the list view, I need the articles to be ordered as:
- featured first
- most recent first (with or without an expiration date)
Currently, I have 'Most recent first' set everywhere in the section's configuration and "Featured first"="Yes".
But, the generated query is like '... ORDER BY featured DESC, ftime DESC, ctime DESC'.
This means that articles are displayed as:
- featured first
- articles WITH AN EXPIRATION DATE and most recent first
- articles WITHOUT AN EXPIRATION DATE and most recent first
This means that if we create a new article for this section with no expiration date, it will not appear right after the featured articles (which is what we want) but a lot further.
I would like to change the query to '... ORDER BY featured DESC, ctime DESC, ftime DESC' (first ctime then ftime).
How is it possible (as where in the section configuration or where in Cobalt code)?
Kind regards,
Hi,
For a section, for the list view, I need the articles to be ordered as:
Currently, I have 'Most recent first' set everywhere in the section's configuration and "Featured first"="Yes".
But, the generated query is like '... ORDER BY featured DESC, ftime DESC, ctime DESC'.
This means that articles are displayed as:
This means that if we create a new article for this section with no expiration date, it will not appear right after the featured articles (which is what we want) but a lot further.
I would like to change the query to '... ORDER BY featured DESC, ctime DESC, ftime DESC' (first ctime then ftime).
How is it possible (as where in the section configuration or where in Cobalt code)?
Kind regards,