Is it possible to hide a tab if there is no content inside the tab?

I found some code which is supposed to do this except that it is for the quick tabs module. I tried implementing the code but was unsuccessful. The code is at; http://drupal.org/node/292150

Comments

nedjo’s picture

Status: Active » Fixed

I added a test to not render empty tabs.

nedjo’s picture

Committed a follow-up fix at the theme stage.

thekayra’s picture

Status: Fixed » Needs work

If there is a Gmap, the title still shows even though all the fileds of the location are empty.

I believe the country list of "location cck" makes it look like it is empty. the list comes with "not listed" but still gets displayed.

nedjo’s picture

Status: Needs work » Fixed

The issue here is that the field is rendering something so the tab is not empty. Any fix would need to be in the gmap module, to not render anything. Then the tab would not show up.

thekayra’s picture

Ok, makes sense.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

piotr_a’s picture

Version: 6.x-1.0 » 6.x-1.3
Status: Closed (fixed) » Active

I have the same problem, but more complex
i have multilanguage sites - 4 languages. In 2 languages the tabs are showing even if the are empty and in 2 they are hidden
The content in this tab is empty.in all languages