• It mostly still works even though there have been no updates since 2022. The one problem I have is that the child events (Day 2, Day 3, etc.) have slugs based on the parent event’s title instead of its slug. The effect is that if a class is given multiple times throughout the year, Day 2 cannot be added to any except the first time the class is given. For example, if the parent’s title is “Basic Training,” the parent slug will be “basic-training” the first time and Day 2’s slug will be “basic-training-day-2”. Then the next month when the same class is given, the parent slug based on the identical title will be “basic-training-2” but Day 2 cannot be created because Ongoing Events is trying to create “basic-training-day-2” again. Instead of using the title “Basic Training” to figure out the child’s slug, it should be using the parent’s slug. The end result should be a new child event with the slug “basic-training-2-day-2” rather than “basic-training-day-2” because only the former slug will not already exist.

    If the entire parent/child URL was used, this would not be a problem, but in looking at the em_events table, I see that the child event slugs do not include the parent slug. For example, they are stored as “basic-training-day-2” instead of “basic-training/basic-training-day-2” and “basic-training-2/basic-training-day-2” and thus the second time it is not unique, even though it belongs to a different parent.

    Are there any hooks I can use to change the slug for the child?

  • You must be logged in to reply to this topic.