help to better help you:

Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!

How to hide an empty event table?

How to hide an empty event table?

7 years 2 days ago
#24680
I wish to hide the events' table if there is no event and show only the category description.

So in my template override I want to create code such as
Code:
if(!empty(XXX)) // show table else // show somethin else

So I need the name of that variable replacing XXX.
Thanks!
Regards,
Herbert

Please Log in or Create an account to join the conversation.

Re: How to hide an empty event table?

7 years 1 day ago - 7 years 1 day ago
#24682
I found out myself:
Code:
<?php if ($this->noevents == 1) : ?> <!-- show some message --> <?php else : ?> <!-- show event table--> <?php endif; ?>
Regards,
Herbert
Last edit: 7 years 1 day ago by HerKle.
The following user(s) said Thank You: jojo12

Please Log in or Create an account to join the conversation.

Time to create page: 0.469 seconds