Support

Home Forums Event Espresso Premium EE4 Events table template toggle version, add date to toggle-closed state

EE4 Events table template toggle version, add date to toggle-closed state

Posted: October 25, 2016 at 12:01 am

Viewing 3 reply threads


Gilda Taffet

October 25, 2016 at 12:01 am

Hi, Can you help me achieve the following: I’d like to add a date column to the pre-toggled (closed) position of the events table template. Right now there are only 2 columns, one for name of event and the register column. (I’d like it to have the event title, date and register showing when toggle is closed.)
Please see usage here:
http://sitedev2015.soilborn.org/calendar/

Here is how I have parameters set for this table:

[ESPRESSO_EVENTS_TABLE_TEMPLATE template_file = espresso-events-table-template-toggle.template.php table_style=”metro” table_pages=15 table_search=false]

Thanks very much for your help.


Tony

  • Support Staff

October 25, 2016 at 5:41 am

Hi there,

You will need to load your own custom version of the toggle template which loads the date.

First grab a copy of the original espresso-events-table-template-toggle.template.php template from within /eea-events-table-view-template/templates/

Place that copy within your themes root directory (preferably a child theme)

That template will now load in place of the default so you can safely edit that template.

Edit the template and on line 46 you’ll see:

<th data-hide="all" class="th-group"><?php _e('Date','event_espresso'); ?></th>

Remove the data-hide="all" from that line.

On line 54 you will find:

<td colspan="2">

Change that to:

<td colspan="3"> or <td colspan="100%">

You will end up with something like this – http://take.ms/zEhbT

Also note you do not need " around shortcode code attributes unless they contain spaces, they can cause problems if you include a styles quotation mark rather than a ‘normal’ one, so use something like this:

[ESPRESSO_EVENTS_TABLE_TEMPLATE template_file=espresso-events-table-template-toggle.template.php table_style=metro table_pages=15 table_search=false]


Gilda Taffet

October 25, 2016 at 11:33 am

Thanks Tony, I really appreciate your help!


Tony

  • Support Staff

October 26, 2016 at 4:10 am

You’re most welcome 🙂

Viewing 3 reply threads

The support post ‘EE4 Events table template toggle version, add date to toggle-closed state’ 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