Page 1 of 1

Entires Date Filtering

Posted: Thu Feb 22, 2018 2:07 pm
by peterneill
Hi all,
Love S9y, just getting to grips with it for a project in my office.

I'm trying to hard code a set of dates into the fetch_Entries function.
You can see the screenshot here:

I'm converting the dates to unix timestamps and adding those values to the array defined.

With this config, s9y falls over ( I get a page not working response when I visit the page ) When I revert the range value to null as it is by default works fine.

Does anyone have any ideas? I suspect I'm doing something wrong with my array?



Re: Entires Date Filtering

Posted: Mon Mar 12, 2018 1:00 pm
by garvinhicking

I must admit this might not be the ideal way to achieve it. Instead of patching a core file of serendipity, I would suggest to simply create your own custom template (you can use an existing template to modify, of course). There I would edit the entries.tpl file and simply add another loop on top of the main loop with your fixed manual dates?

Another way would be to actually create blog entries for the time you want and do some special ID checking or so, if you want those blog entries to behave differently.

Even more better, you could use the entryproperties plugin, define a specific property for an entry, and then query that inside the loop...


Re: Entires Date Filtering

Posted: Tue Apr 03, 2018 2:00 pm
by peterneill
Thanks for this Garvin!

Appreciate it. Just coming back to this issue now. Is it possible to filter the date via the URL?

Such as something like in bold below..

or ... end=YYYYYY[/b]
I ask this as if it was I could use some javascript I have in my project to generate the links i need as needed...