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
Comment #1
nedjoI added a test to not render empty tabs.
Comment #2
nedjoCommitted a follow-up fix at the theme stage.
Comment #3
thekayra commentedIf 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.
Comment #4
nedjoThe 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.
Comment #5
thekayra commentedOk, makes sense.
Comment #7
piotr_a commentedI 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