Hey there,
i have a structure field for upcoming events. The problem now, how can i delete old entries from the structure field when the event date is in the past? Because i wanna only show the next upcoming event and not the complete list.
Thanks for help
Never done it myself but i think you could probably use a hook (maybe page update before) to read the structure feild, strip out the old ones and save it back to the content file.
I think itβs best to do this with a cron job, maybe once a day, and on top of that just filter your events in your controller.