Posted: May 15, 2015 at 4:38 am
|
I was wondering if it is possible to show all dates of upcoming events in the table view. We are currently using a modified template that lists all of the dates as per https://gist.github.com/lorenzocaum/ac217033f12232404cce which is ok however this would work much better for us if we could modify the template to list all the courses based on event dates. |
Hi, the second alternative version here will show all dates: https://gist.github.com/lorenzocaum/ac217033f12232404cce#comment-1348273 — |
|
|
Hi Lorenzo, Thanks for your reply, I believe that is what we are using. I would rather base the list of events off the event date/times, so instead of listing all event times for a particular event we show all dates listed with the event. Currently if we have, say 3 dates set for an event there will be one row, with a list of the date/times (format is dd/mm/yyyy): training event – 1/5/2015, 2/6/2015, 2/7/2015 What I would like to achieve is: training event – 1/5/2015 I think the above example illustrates better than I could describe it. |
Hi, could you provide a link to the page that has the events table list view in use? — |
|
|
Yea sure, the url is: redacted – Event Espresso support team – LOC |
Okay, I think your question is related to clustering similar events. The events table list view doesn’t quite work like that since each event is separate. Is that what you are referring to? — |
|
|
Hi Lorenzo, thanks again. Basically I want to display each ticket date/time as it’s own event on the table, rather than grouped by the event. |
Hi, you could do that but you would need to create an event for each ticket option. This is because an event can have multiple tickets and datetimes under it. — |
|
|
Yea, I was kind of hoping there was a way I could re-write the code a bit to loop over the dates instead of the events, and then echo the event detail. I realise that would probably be a bit more intensive than the other format, but it would make a lot more sense to us and our customers. |
|
Hi Annie, I think it is possible to do what you’re asking, but it would require a fairly large re-write of the template, beyond what support can offer. I haven’t tested it but I was thinking you could loop through each events date time (within the standard event loop), generating the HTML table rows for each and store them in an array with the start date as an index, then you could order the array by date and then loop through the array and echo out the table rows. That may not make much sense, so I’m sorry about that, but it might be a starting point for a developer to work with. We do have a recommended list of developers here: https://eventespresso.com/developers/event-espresso-pros/ |
|
I Dean, Thank you. It does make sense! I will take a look and see if we can’t put something together based on your description. |
|
No problem, hopefully it turns out to be a good starting place for you. |
The support post ‘Event table list view – show all dates and times?’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.