Hi,

I created a number of Views Panes, and then I created some panel configs to display those view panes as tabs on Organic Group pages. So basically, I have an OG group, and then several tabs are displayed that have content on them, produced by views and controlled by panels.

Now, I want to design an easy way for each individual group to be able to manage whether these tabs show up on their team pages or not. So, my initial thought was to create a settings fieldset on the group edit page, with a simple list of available panels, or panel variants, with checkboxes next to them.

Then, during some hook or preprocess function, that list would be examined and some panels would be turned on or off. Does that sound like a reasonable approach? Which hooks would I need to investigate (ideally early as possible to limit the amount of processing for panels that won't show in the end)?

I don't think I can use IPE because I am not managing content on an individual panel (excuse me if my terminology is wrong), plus I want the simplest solution possible, so I don't really want to give access to the panel management system as a whole, and this has to configurable for each individual group, not all groups overall.

Is there a better way to approach this? The key is I want the UI to be dead simple, so a group admin can just tick a box like 'yes i want this one, this one, and this one, and not this one, that one, or that one'.

Thanks,
Cliff

Comments

meecect created an issue.

meecect’s picture

I should also mention that I am aware that there is a visibility rule where I can put in php code, but I want to only use that as a last resort, because It will be easier to version my code if I can put an alter or preprocess hook in a custom module that will have the same effect.