How to list (filter) sermons from a specific year onwards

More
11 Jan 2023 16:20 #7987 by Phi TRAN
Hello,
I would like to know whether it is possible to list sermons up to a specific year and also from a specific year onwards.
We have a lot of sermons spanning many years but would like to separate them (those before 2023 and those from 2023 onwards).
I know that in the "list sermons" functionality, we can already filter by a specific year but there is no filter "up to a specific year" or "from year yyyy onwards". If there isn't such possibility, can I change some codes myself for that to work ?
Thank you for your attention.
 

Please Log in or Create an account to join the conversation.

More
11 Jan 2023 21:37 #7988 by Thomas Hunziker
Out of the box, SermonSpeaker doesn't offer that functionality.

In theory, you could adjust the lines in the model here: github.com/Bakual/SermonSpeaker/blob/11a...ermons.php#L499-L505

Those are responsible for the date filtering by year.

The state which is read there is set here based on the request URL or the menuitem param: github.com/Bakual/SermonSpeaker/blob/11a...els/sermons.php#L649

So you could add another filter or adjust the existing to achieve what you want. But you need to remember that the changes are reverted each time you update SermonSpeaker. You will have to manually reapply those.
The following user(s) said Thank You: Phi TRAN

Please Log in or Create an account to join the conversation.

Time to create page: 0.159 seconds
Powered by Kunena Forum