Calendar_XH older date deleted

Third Party Plugins to CMSimple - how to install, use and create plugins

Moderator: Tata

Post Reply
bastingse
Posts: 272
Joined: Fri Jun 06, 2008 9:38 pm
Location: Netherlands
Contact:

Calendar_XH older date deleted

Post by bastingse » Fri Mar 29, 2019 5:49 pm

Is it an option to build in the Calendar_XH plugin, that if an event is added to the calendar that it will be deleted automaticly when that date is passed??

Tata
Posts: 2993
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Calendar_XH older date deleted

Post by Tata » Fri Mar 29, 2019 7:55 pm

What is the reason for that? The "old dates" aren't shown anyway. The files in which the infos are stored are - even with many events - not that big. OTOH, the calendar can whenever be used also as a kind of chronicle. I am afraid deleting some lines in these files won't be that simple.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

bastingse
Posts: 272
Joined: Fri Jun 06, 2008 9:38 pm
Location: Netherlands
Contact:

Re: Calendar_XH older date deleted

Post by bastingse » Sat Mar 30, 2019 12:03 pm

When using this function:

Code: Select all

{{{events()}}}
Then old dates are showing on that page

frase
Posts: 2961
Joined: Thu Apr 21, 2016 6:32 am
Location: Saxony
Contact:

Re: Calendar_XH older date deleted

Post by frase » Sat Mar 30, 2019 12:43 pm

In the configuration, you can set which events from the past should be displayed.
"Number of previous"

Tata
Posts: 2993
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Calendar_XH older date deleted

Post by Tata » Sat Mar 30, 2019 12:53 pm

Even with this function, only the actual or future months are shown, when

Code: Select all

	$calendar_cf['show_past_months']="";
The events from "yesterday" are greyed.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

bastingse
Posts: 272
Joined: Fri Jun 06, 2008 9:38 pm
Location: Netherlands
Contact:

Re: Calendar_XH older date deleted

Post by bastingse » Mon Apr 01, 2019 12:56 pm

Amazing!!
It works! Thank you folks!!
Much appreciated!!

Post Reply