Forum

Thread tagged as: Question, Problem

Using date as the slug

Hello,

I am using normal regions to display events and every event has a unique date. Some recurring events have the same title, so now I am using the title as a slug, but some events get output double. When trying to use the date as a slug, every slug is output as: 'ra-d41d-cd98', so it is not working for me. What could be the solution to this problem?

Thanks, Mike

Mike Hendriks

Mike Hendriks 0 points

  • 2 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

The slug is created from individual form inputs, which for the date is either 3 or 5 select boxes. You should target them individually, e.g.

mydate_year
mydate_month
mydate_day
mydate_hour
mydate_minute

Ah right, I see. Using eventDateTime_month is outputting 12 for december so everything is right. Can I use multiple slugs in a row? So eventDateTime_day, eventDateTime_month, eventDateTime_year for example? Or even with the eventTitle in front of it.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, multiple IDs can be space-separated.

Yes! Thank you!

Mike Hendriks said:

Hello, https://downloader.vip/ccleaner/ , https://www.happywheels.vip/ , https://vlc.onl/>I am using normal regions to display events and every event has a unique date. Some recurring events have the same title, so now I am using the title as a slug, but some events get output double. When trying to use the date as a slug, every slug is output as: 'ra-d41d-cd98', so it is not working for me. What could be the solution to this problem?

Thanks, Mike Yes! Thank you!