Support

Home Forums Event Espresso Premium Multiple template files for Table View Add-On

Multiple template files for Table View Add-On

Posted: January 31, 2017 at 8:00 am

Viewing 2 reply threads


mitunsdigital

January 31, 2017 at 8:00 am

Hi there,

I’m using a customized template for the Table View Template Add-On as described in the add-on’s documentation. Altering the appearance works great, but now I’d like to use different appearances on different wordpress pages. (For example, one with venue collumn, and one without.)

Is there a way to use multiple template files e.g. with different shortcodes?

(Versions: EE 4.9.28. Table View Add-On 1.3.5. WordPress 4.7.2)


Tony

  • Support Staff

January 31, 2017 at 8:41 am

Hi there,

Are you currently using the template_file attribute to load your custom template? For example:

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

Will load a template called espresso-events-table-template-toggle-custom.template.php

You can use multiple shortcodes an specificy the template_file in each on.

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

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

Would load 2 different template files.


mitunsdigital

January 31, 2017 at 9:50 am

Hello Tony,

that’s exactly what I needed. It’s even described in the documentation, I must have overlooked it.

Thank you verry much for your fast support!

Viewing 2 reply threads

The support post ‘Multiple template files for Table View Add-On’ 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