Support

Home Forums Event Espresso Premium Event table list view – show all dates and times?

Event table list view – show all dates and times?

Posted: May 15, 2015 at 4:38 am

Viewing 11 reply threads


AnnieB

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.


Lorenzo Orlando Caum

  • Support Staff

May 15, 2015 at 8:54 am

Hi, the second alternative version here will show all dates:

https://gist.github.com/lorenzocaum/ac217033f12232404cce#comment-1348273


Lorenzo


AnnieB

May 18, 2015 at 6:00 am

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
other training event – 1/6/2015, 1/7/2015

What I would like to achieve is:

training event – 1/5/2015
other training event – 1/6/2015
training event – 2/6/2015
other training event – 1/7/2015
training event – 2/6/2015

I think the above example illustrates better than I could describe it.
Thanks


Lorenzo Orlando Caum

  • Support Staff

May 18, 2015 at 12:23 pm

Hi, could you provide a link to the page that has the events table list view in use?


Lorenzo


AnnieB

May 21, 2015 at 3:49 am

Yea sure, the url is: redacted – Event Espresso support team – LOC


Lorenzo Orlando Caum

  • Support Staff

May 21, 2015 at 10:20 am

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?


Lorenzo


AnnieB

May 28, 2015 at 2:27 am

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.


Lorenzo Orlando Caum

  • Support Staff

May 28, 2015 at 7:03 am

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.


Lorenzo


AnnieB

May 28, 2015 at 7:25 am

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.


Dean

May 29, 2015 at 3:21 am

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/


AnnieB

May 29, 2015 at 4:06 am

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.


Dean

May 29, 2015 at 4:49 am

No problem, hopefully it turns out to be a good starting place for you.

Viewing 11 reply threads

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.

Event Espresso