LISE - Displaying items that have passed endtime date.

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
WWc
Forum Members
Forum Members
Posts: 20
Joined: Mon Aug 29, 2016 8:05 am

LISE - Displaying items that have passed endtime date.

Post 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.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1967
Joined: Mon Jan 29, 2007 4:47 pm

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

Post 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.
"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!
WWc
Forum Members
Forum Members
Posts: 20
Joined: Mon Aug 29, 2016 8:05 am

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

Post 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.
Locked

Return to “Modules/Add-Ons”