Skip to Content Skip to Menu

Hide tab when empty

  • dotcom22
  • dotcom22
  • OFFLINE
  • Posts: 522
  • Thanks: 14
  • Karma: 4
13 years 7 months 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:
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:
Code:
<?php if(empty($listings)) { __t("") . ''; return; } ?>

or also like that:
Code:
<?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 or Create an account to join the conversation.

  • dotcom22
  • dotcom22
  • OFFLINE
  • Posts: 522
  • Thanks: 14
  • Karma: 4
13 years 7 months 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 or Create an account to join the conversation.

  • dotcom22
  • dotcom22
  • OFFLINE
  • Posts: 522
  • Thanks: 14
  • Karma: 4
13 years 7 months 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 or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum