I’m using a date filter option with a Calendar. When I open it in the frontend, it defaults to the current month and year. However, my users will most likely be searching for records dated in 1888. How can I configure the calendar filter to default to the year 1888 instead?
Support
Filter calendar mode: set a prefered date
Public
Closed
Joomla! version (x.y.z)
4.4.12
Extension Version (x.y.z)
1.18.2
Your Role
Site Owner
Latest post by on Thursday, 24 April 2025 03:00 EEST
Franklin
sakinho
Hi
You have to edit a core js file.
Better create a media override for that js file, in order to keep the changes after an update.
The file of interest is that: media/mod_jfilters_filters/js/calendar.js
At the line 166, (after: time_24hr: filterConfig.time_24hr == "1" ? true : false) ,
add that:
defaultDate: '01-01-1888',
Do note: There is also a minified version of that file, under the name: calendar.min.js
You have to apply the changes also there.
Kind regards,
Sakis Terzis
Founder and Lead Developer
System Task
This ticket has been automatically closed.All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.