By default, if there are no events, the table is shown with one entry <Currently no events>.
But as I understood you want to hide the complete table?
Go to Joomlaroot\components\com_jem\common\views\tmpl\default_events_table.php at line 101 there you find the variable ($this->noevents == 1). Change that to the opposite (I think == 0 should be good) and then put this line before the form of the eventtable (line 77) in the file Joomlaroot\components\com_jem\views\category\tmpl\default.php and the belonging "endif" after the form.
PS: Next time it would be good if you call the thread like your question: "Hiding event table if empty". It helps other users that want to do the same.
Last edit: 6 years 3 months ago by
Egnarts.
Please Log in or Create an account to join the conversation.