How to sort articles based on date in field

General questions relating to Joomla! 3.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
huubs
Joomla! Intern
Joomla! Intern
Posts: 73
Joined: Tue Aug 11, 2015 1:20 pm

How to sort articles based on date in field

Post by huubs » Thu Mar 29, 2018 11:49 am

Hello,

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

 
User avatar
ranwilli
Joomla! Master
Joomla! Master
Posts: 19169
Joined: Sun Feb 19, 2006 6:47 pm
Location: Toledo, OH
Contact:

Re: How to sort articles based on date in field

Post by ranwilli » Tue Apr 03, 2018 12:41 pm

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?
Don't HACK the Joomla! core, Instead "Extend" and/or "Override."
Stay ON the update path.
https://harpervance.com

huubs
Joomla! Intern
Joomla! Intern
Posts: 73
Joined: Tue Aug 11, 2015 1:20 pm

Re: How to sort articles based on date in field

Post by huubs » Wed Apr 04, 2018 7:22 am

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.

huubs
Joomla! Intern
Joomla! Intern
Posts: 73
Joined: Tue Aug 11, 2015 1:20 pm

Re: How to sort articles based on date in field

Post by huubs » Mon Apr 09, 2018 8:59 am

Anyone has an idea? Maybe change the core code?

huubs
Joomla! Intern
Joomla! Intern
Posts: 73
Joined: Tue Aug 11, 2015 1:20 pm

Re: How to sort articles based on date in field

Post by huubs » Wed Apr 11, 2018 3:45 pm

Anyone? I could do it in K2 with a simple change of the core code.

 

Locked

Return to “General Questions/New to Joomla! 3.x”