Closed (fixed)
Project:
Panels
Version:
6.x-3.2
Component:
Views panes
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Jan 2010 at 19:17 UTC
Updated:
30 Jan 2010 at 00:50 UTC
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
Comment #1
merlinofchaos commentedYou 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.