How to show tab only when necessary?

18 years 1 month ago #8950 by hypnotoad
How to show tab only when necessary? was created by hypnotoad
Is there a possibility to show a Plugin-tab only when it's necessary, as it is done with the custom tabs added by hand?
E.g. the 2 plugins I wrote (jAwards-Tab, and PonyTab) show up all the time. I'd like to hide those if the user has no awards or no images published.

CB 3rd Party Developer: jAwards | GalleryTab for CB (Ponygallery, ML)

Please Log in to join the conversation.

18 years 4 weeks ago #9568 by hypnotoad
Replied by hypnotoad on topic Re:How to show tab only when necessary?
So.... (since only views, and no reply came), I guess it's not possible currently?

Can this feature be part of some future release of Community Builder?

CB 3rd Party Developer: jAwards | GalleryTab for CB (Ponygallery, ML)

Please Log in to join the conversation.

18 years 4 weeks ago #9584 by nant
Replied by nant on topic Re:How to show tab only when necessary?
hypnotoad wrote:

So.... (since only views, and no reply came), I guess it's not possible currently?

Can this feature be part of some future release of Community Builder?


Sure its possible.
Just evaluate the criteria and return nothing in the getdisplaytab function.

Please Log in to join the conversation.

18 years 4 weeks ago #9586 by hypnotoad
Replied by hypnotoad on topic Re:How to show tab only when necessary?
:whistle: I could have guessed it exactly that way... works wonderful, will be used in the next versions of my tabs!

CB 3rd Party Developer: jAwards | GalleryTab for CB (Ponygallery, ML)

Please Log in to join the conversation.

18 years 4 weeks ago #9617 by balserodeluxe
Replied by balserodeluxe on topic Re:How to show tab only when necessary?
Any suggestions on how to hide certain tabs of OTHER USERS if there is no connection with that user?

Please Log in to join the conversation.

18 years 3 weeks ago #9623 by nant
Replied by nant on topic Re:How to show tab only when necessary?
balserodeluxe wrote:

Any suggestions on how to hide certain tabs of OTHER USERS if there is no connection with that user?


This can be programmed on a plugin basis.
I have added this feature to my (Nant's) Gallery plugin (currently in testing). I have a backend parameter option to allow only connected users to see other's gallery.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.220 seconds

Facebook Twitter LinkedIn