I have a panel pane that I would like to show a particular View if you are in Dept. A in the user profile. If you are not in Dept. A, then you are shown a different View. Has anyone done any PHP like this that I can add to a Pane's custom content?

Comments

merlinofchaos’s picture

Status: Active » Fixed

You should add both views as panes. Then add PHP Code as a selection rule on the pane.

There are several snippets for loading profile fields available. I actually don't remember how to test profile fields exactly, so you'll have to come up with the PHP to do that.

Status: Fixed » Closed (fixed)

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