Hello,

Thanks a lot for this amazing module which I really enjoy.
I'm working on a profile page that has several (local tasks) tabs (wall, profile, audio, video...), which I have created with Panel's Page Manager.
I'd like to keep the visibility of the audio and video tabs depending on content profile's field status (un/checked). So if a musician activates the "audio" checkbox (which is a content taxonomy field) in his/her profile, the "audio" tab is visible... deactivating this checkbox will hide the "audio" tab.

(How) is it possible with Panels or is there any other clever way to handle that?

Help and ideas are much appreciated.

Stefan

Comments

merlinofchaos’s picture

Status: Active » Fixed

The visibility of the tab, assuming the tab is a page manager page, is controlled with the access rules. You would need to write a little piece of PHP code using the "PHP code rule" that does this. It's probably 6-8 lines of code that would need to look at the contexts available (the context should be available from the argument, once you've associated it) and loads the user's profile and tests the checkbox.

Status: Fixed » Closed (fixed)
Issue tags: -panels, -content profile, -content taxonomy, -Local Tasks, -tab visibility

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