Hide tab when empty

13 years 1 month ago #159743 by dotcom22
Hide tab when empty was created by dotcom22
hello Krileon

I use a third party CB plugin who allow me to display some data inside a Tab. Now I would like hide the Tab if no data is retrieved... I set in Configuration to hide Tab in this case but the Tab remain displayed even if no data are inside..

I ask the developer of the third party plugin and I try to search in this forum a solution but no one can help with that...

In fact the third party plugin have a code who permit to display a default message if no data is retrieved..here that code:
<?php if(empty($listings)) { __t("No entries were found") . '<br /><br />'; return; } ?>

So if I keep this code of course the Tab will not be hide because the default "empty message" will be displayed and also because some BR tag are present...so I tried to modify the code like that:
<?php if(empty($listings)) { __t("") . ''; return; } ?>

or also like that:
<?php if(empty($listings) return;?>

Now in both case the Tab is totally empty but it still remain displayed...

How I can hide the Tab?? Have you please a suggestion for modify the code of the third party plugin for let CB hide the Tab??

many thank

Cheers

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins

Please Log in to join the conversation.

13 years 3 weeks ago #160730 by dotcom22
Replied by dotcom22 on topic Re: Hide tab when empty
any reply please?

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins

Please Log in to join the conversation.

13 years 2 weeks ago #161014 by dotcom22
Replied by dotcom22 on topic Re: Hide tab when empty
really no reply??

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.128 seconds

Facebook Twitter LinkedIn