Support

Home Forums Event Espresso Premium Table view with multiple dates.

Table view with multiple dates.

Posted: November 3, 2014 at 4:53 pm

Viewing 6 reply threads


Alexander Quesada

November 3, 2014 at 4:53 pm

Hello,

I have the table working and it looks great, however, I have one complaint. If I have an event with multiple dates and times, in the table view it only shows the first available date. Is there a way to change that to something like “multiple dates and times available”? The way it is set up, it makes it look as if there is only one day for that event.

Thanks


Dean

November 4, 2014 at 4:32 am

Hi Alexander,

The template does only show the first date that is in the event.

It could be done with a small modification to the template though. If you are happy to dig into some PHP I can walk you through it.

I’ll also add this as a feature request, as it could be quite easily added as a parameter


Dean

November 4, 2014 at 4:34 am

It would appear something like this (this has not been styled) http://take.ms/ujGy6


Alexander Quesada

November 4, 2014 at 6:30 am

Hello,

Yes, that looks fantastic! Can you let me know how to do that?

Thanks!


Dean

November 4, 2014 at 6:54 am

Hi,

The first thing that you need to know is that this modification will get over written if the addon is updated.

The file that needs editing is /wp-content/plugins/eea-events-table-view-template/templates/espresso-events-table-template.template.php

Around line 102 (near the bottom) of the file is this code

See pastebin for the code: http://pastebin.com/CSCZGCsc

All this does is replaces the output of the date with a special function that lists all the datetimes.

After that you may want to add this CSS to your themes style.css file, your custom CSS section of your theme options or to a plugin such as My Custom CSS:

.ee-event-datetimes-ul li {
list-style-type: none;
}

That will just get rid of the dots in front of each date.

  • This reply was modified 10 years ago by Dean. Reason: moved code to pastebin


Alexander Quesada

November 4, 2014 at 7:38 am

Perfect, thank you so much!


Tony

  • Support Staff

November 4, 2014 at 9:55 am

Hi Alex,

Just to note, you can actually place the modified template file within your sites theme or wp-content/uploads/espresso/templates/

So you could have have :-

wp-content/themes/*your theme*/espresso-events-table-template.template.php
or
wp-content/uploads/espresso/templates/espresso-events-table-template.template.php

The files will load in that order, then if none found default back to the original within the Add-on.

That will keep your customised template if we update the Template Add-on, however to note if you include it within your theme, theme updates could remove it. Some security plugins also do not like .php files within uploads (for example Securi) just something to be aware of.

Viewing 6 reply threads

The support post ‘Table view with multiple dates.’ 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