Page 1 of 1

LISE - Displaying items that have passed endtime date.

Posted: Tue Aug 01, 2017 8:44 am
by WWc
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.

Re: LISE - Displaying items that have passed endtime date.

Posted: Sat Aug 05, 2017 11:10 am
by Jo Morg
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.

Re: LISE - Displaying items that have passed endtime date.

Posted: Thu Aug 17, 2017 3:53 am
by WWc
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.