Hide blank event tab in GK5 Tabs module

GK User
Wed Aug 26, 2015 5:56 pm
Dear forum members, I recently installed events template and it is working fantastic there is only one problem:

How to auto hide tab module when the category has no articles (events)?
For example - I have 2 events in august, when the september will be here, the august tab will be hidden... and so on.

Thank you for reply
User avatar
Junior Boarder

GK User
Fri Aug 28, 2015 8:10 am
You are talking about "Upcoming events" module?
User avatar
Moderator

GK User
Fri Aug 28, 2015 10:00 am
Yes exactly that
User avatar
Junior Boarder

GK User
Mon Aug 31, 2015 10:33 am
And you would like to hide entire module if there are no events?
User avatar
Moderator

GK User
Tue Sep 01, 2015 6:22 pm
I want to hide only empty categories in this module. In the first tab there are all events. Second tab is only with September, when there will be no event in september, it can be hidden.
User avatar
Junior Boarder

GK User
Mon Sep 07, 2015 6:25 am
Could you please post an url to your site?
User avatar
Moderator

GK User
Tue Sep 08, 2015 8:21 pm
Sorry for late answer, this is the site: www.barmuseum.eu
User avatar
Junior Boarder

GK User
Thu Sep 10, 2015 1:41 pm
Does it display when there are no articles? I guess it should not display empty "months" but I'm not pretty sure.
User avatar
Moderator

GK User
Thu Sep 10, 2015 1:52 pm
O, never mind, I was thinking about something else. So basically there is a "tabs" mechanism which create different tabs, and inside of them there are NSP modules showing events. Each NSP module is configured to show elements from one month. When there are no elements, you would like to remove month from selector.
Now what you would like to do is to communicate this two different modules with each other. I'm afraid it cannot be easily done :(
User avatar
Moderator

GK User
Mon Sep 14, 2015 10:13 pm
Ok, I can just hide it... maybe in the future we can ask some coder to fix it...
User avatar
Junior Boarder

GK User
Fri Sep 18, 2015 12:57 pm
Actually you could simply not create tab for a particular month. As I have said - those are independent modules which don't know much about each other, not mentioning communicating.
User avatar
Moderator


cron