Hi all
Using
CMS Made Simple 2.2.2
CGCalendar 2.4.7
CGExtensions 1.56
CGGoogleMaps2 1.1.1
CGSimpleSmarty 2.1.6
CMSContentManager 1.1.5
CmsJobManager 0.1
DesignManager 1.1.3
FileManager 1.6.3
FilePicker 1.0
Gallery 2.3.2
LISE 1.3
LISEmylist 1.3
MenuManager 1.50.3
MicroTiny 2.2
ModuleManager 2.1.1
Navigator 1.0.7
News 2.51.2
Search 1.51.2
Snippet 0.2.4
I've set up a very useful instance of LISE and am loving how easy it is to set up the templates to display as I need.
However, I can't work out what the archive feature is supposed to do. I thought it would call items that were passed the endtime date but it doesn't. When using the Archive action, it brings up a date link that heads off to the admin pages?
So, what I'm attempting to do is display a summary page of only items that have passed the endtime date - An archive of events so to speak.
{LISEmylist template_summary="past" showall="0"}
of course show all the items regardless of endtime date but also shows coming events which I don't want.
I need to filter out the coming events.
I have tried adding {if $item->fielddefs.startdate.value <= $smarty.now|date_format:"D d M y"} - where startdate is one of my field definitions - and variations of it to filter out the future items. It reorders the summary list but then calls in the future items at the end.
Would very much appreciate any guidance on this. Thanks in advance.
LISE - Displaying items that have passed endtime date.
Re: LISE - Displaying items that have passed endtime date.
It works for me, tested in LISE 1.3.1, but IIRC it was working fine before. You should check PHP logs, admin logs, etc, for possible errors.
The action archive groups all items by date (month and year) and each date leads to a list of items published on that particular month.
The action archive groups all items by date (month and year) and each date leads to a list of items published on that particular month.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Re: LISE - Displaying items that have passed endtime date.
Apologies for the delay in thanking you Jo Morg, I've only just seen your reply.
After searching around on the Interwebs, I found that I needed to be specific with the date format like this:
{if $smarty.now|date_format:"YYYY/MM/DD" < $item->fielddefs.startdate.value|date_format:"YYYY/MM/DD"}
It is now working as expected.
After searching around on the Interwebs, I found that I needed to be specific with the date format like this:
{if $smarty.now|date_format:"YYYY/MM/DD" < $item->fielddefs.startdate.value|date_format:"YYYY/MM/DD"}
It is now working as expected.