Hey @pauloamgomes,
Since I’m completely new to Cockpit and not much of a programmer, I could use your help.
I have an events collection with data imported from a JSON file I retrieved from Facebook.
One of the fields is start_time and it has a datestring formatted as yyyy-mm-ddThh:mm:ss-xxxx, e.g. 2020-10-02T23:00:00+0200.
I would like to extract the year, the month and the day separately to create slugs like this: /events/yyyy/mm/dd/title
A callback function would be the answer to this, I think, but how would I go about creating one. And would this function reside in /addons/BetterSlugs/bootstrap.php
or /addons/BetterSlugs/Helper/Utils.php
?
Regards,
Zignature