help to better help you:

Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!

Automatically setting events to delete a day after start date

Automatically setting events to delete a day after start date

6 years 1 month ago
#25429
Hello,

On our site, we enter events with a date and start time, but we leave the end date and time blank.

As a result, the automatic function to delete old events does not work. Is there a way to have old events delete a day after the start date when an end date isn't specified?

Thank you,.

Please Log in or Create an account to join the conversation.

Re: Automatically setting events to delete a day after start date

6 years 1 month ago
#25430
Hi,
I nearly never set the endtime and enddate. And the finished events are archived.
Normally the same should work with delete.

Go in Backend to JEM>Settings>Basic Settings>Event Handling>Handle Old Events = Trash or to Delete
Number of Days = 1

Please Log in or Create an account to join the conversation.

Re: Automatically setting events to delete a day after start date

6 years 1 month ago
#25431
Odd, I already had it set like that yet the events just stay in the list with all the others.

Anything I may be missing? I thought that setting only worked with an end date set.

Please Log in or Create an account to join the conversation.

Re: Automatically setting events to delete a day after start date

6 years 1 month ago
#25433
Please try housekeeping>trigger autoarchive. Because normally the events are archived within 24 hours.

Please Log in or Create an account to join the conversation.

Re: Automatically setting events to delete a day after start date

6 years 1 month ago
#25434
Ok, I clicked that and it worked. Does this mean I will have to click that manually to cleanup? There isn't a way to have it run on its own?

Is the intended behavior that it runs automatically? Or is there a cron job or something I have to setup or some plugin?

Please Log in or Create an account to join the conversation.

Re: Automatically setting events to delete a day after start date

6 years 1 month ago
#25435
No, it should work automaticly.
But we don't know anything about your system. On a clean Joomla with only the official Joomla! templates and JEM this works best.
But sometimes there are interferences with other plugins or templates (not congruent) which are causing such problems. But since now never heard.
My proposal is: to archive and after some time the oldest one to delete. In my case this works perfectly.

Please Log in or Create an account to join the conversation.

Time to create page: 0.516 seconds