Support

Home Forums Event Espresso Premium Adding Columns to EE4 Events Table View Template

Adding Columns to EE4 Events Table View Template

Posted: December 21, 2014 at 8:24 am


John Fineberg

December 21, 2014 at 8:24 am

I see on this page, https://eventespresso.com/wiki/ee4-events-table-view-template/, that the template is formatted with three columns. However, when I made the upgrade from EE3 to EE4.4.7, only two columns showed up on this page: http://www.cpr-twincities.com/community/choose. I’d like to add a column in the middle like the one shown on your example, with the date and time listed. Please tell me, how do I go about making that happen?


Lorenzo Orlando Caum

  • Support Staff

December 21, 2014 at 6:19 pm

Hi, the default templates for the events table view template already include that information. Did a developer modify the templates for you?


Lorenzo


John Fineberg

December 21, 2014 at 9:42 pm

A developer (who I am no longer working with) created my WordPress website, including the EE3 plugin. But no one has done anything to the EE4 site except myself, and I could not find any way to make the adjustments I wanted in the “Event Espresso – Calendar” section.

I see now in the “Edit Plugins” section these words: “creates a table with two colums and a toggle to expand the row.” Is it just a matter of changing that to “creates a table with three colums and a toggle to expand the row?” I suspect not.

~ John


John Fineberg

December 21, 2014 at 10:21 pm

Here’s an example of how things are currently displaying on my site: http://www.cpr-twincities.com/community

I’d like it if it didn’t repeat the same class over and over again in the list. If a particular class could appear once, with a drop-down list to choose a particular date, that would be great.

Right now on this page, I have two views, Table View and whatever you call the regular view. If both of them could say “Classes” or “Upcoming Classes,” rather than “Events,” that would be more accurate.


Dean

December 22, 2014 at 2:45 am

Hi John,

““Event Espresso – Calendar” section.”

This doesn’t control this addon, so it can be ignored for now.

“Is it just a matter of changing that to “creates a table with three colums and a toggle to expand the row?” I suspect not.”

No, but it is not that hard to resolve. Edit the page that contains the table and you should see a shortcode like this:

[ESPRESSO_EVENTS_TABLE_TEMPLATE template_file = espresso-events-table-template-toggle.template.php]

That shortcode will display the table you have now. To display the default 3 column table use this shortcode

[ESPRESSO_EVENTS_TABLE_TEMPLATE]

“I’d like it if it didn’t repeat the same class over and over again in the list.”

Currently that isn’t possible without modifying the addons code.

“If both of them could say “Classes” or “Upcoming Classes,” rather than “Events,” that would be more accurate.”

The best way to achieve this is to use the translation files to translate events into classes. See here: https://eventespresso.com/wiki/how-to-change-wording-with-poedit/


John Fineberg

December 22, 2014 at 10:20 am

Hi, Dean. Switching to [ESPRESSO_EVENTS_TABLE_TEMPLATE] got me just what I was looking for in the table view. Thank you.

As for changing wording in table headings, I tried “Quick Localisation by Name.ly” and that had no effect. Under “Old,” I entered “Event.” Under “New,” I entered “Class.” I left “Domain” empty. And then I saved my work. But Event still says Event. (I’ve refreshed my screen a number of times, but that doesn’t do it.) Your thoughts? Suggestions?


Lorenzo Orlando Caum

  • Support Staff

December 22, 2014 at 10:51 am

Hi,

The column heading is wrapped in a language domain so it can be translated (i.e change the messaging):


Set the domain to event_espresso and update the changes in the quick localization plugin.

Old: Event
New: New phrase or word here
Language domain: event_espresso


Lorenzo


John Fineberg

December 22, 2014 at 11:32 am

Yes, that worked, Lorenzo. Thank you. And thank you, too, Dean. (I’ll mark this one as resolved.)

The support post ‘Adding Columns to EE4 Events Table View Template’ 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