Support

Home Forums Event Espresso Premium Table View Addon Message when table is empty

Table View Addon Message when table is empty

Posted: May 11, 2018 at 2:50 pm


saschriver

May 11, 2018 at 2:50 pm

So I have added a table for a category that is currently empty, but won’t be empty forever, as courses offered will be added as needed. So when I add the table view with that particular category and there are no upcoming courses, nothing shows. Is there an option to show a generic message? Like “There are now upcoming events scheduled.”


Josh

  • Support Staff

May 11, 2018 at 7:55 pm

You can add a message when no events by making an edit to the table view add-on’s template (the default template’s name is espresso-events-table-template.template.php). Near the end of the template, after the else statement, you’ll see this:

espresso_get_template_part( 'content', 'none' );

and you can replace with something like this:

echo '<div><p>There are no upcoming events scheduled.</p></div>';

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: publish

Updated by  Josh 2 weeks ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!