Page 1 of 1

How to sort articles based on date in field

Posted: Thu Mar 29, 2018 11:49 am
by huubs
Hello,

Is it possible to sort articles based on the date I have in a custom Field in the Fields component?

Re: How to sort articles based on date in field

Posted: Tue Apr 03, 2018 12:41 pm
by ranwilli
Given sufficient time and budget, ANYTHING is possible. Making a custom date field for articles is trivial, but you'll probably have to make a layout override with a custom db query to sort based on the custom field.
How and where do you plan to display the list of articles?

Re: How to sort articles based on date in field

Posted: Wed Apr 04, 2018 7:22 am
by huubs
ranwilli wrote:Given sufficient time and budget, ANYTHING is possible. Making a custom date field for articles is trivial, but you'll probably have to make a layout override with a custom db query to sort based on the custom field.
How and where do you plan to display the list of articles?
Yeah I understand. But I'd like to do it myself, it shouldn't be that hard right?


I want to display the list of articles in the mod_articles_news module and the category_blog page on my website.

Re: How to sort articles based on date in field

Posted: Mon Apr 09, 2018 8:59 am
by huubs
Anyone has an idea? Maybe change the core code?

Re: How to sort articles based on date in field

Posted: Wed Apr 11, 2018 3:45 pm
by huubs
Anyone? I could do it in K2 with a simple change of the core code.