Closed (fixed)
Project:
Panels
Version:
7.x-3.3
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Mar 2013 at 10:28 UTC
Updated:
11 Apr 2013 at 00:20 UTC
Hi,
Better than use php to send arguments to my views or else, I'd like to set a context (in my case a term ID) with custom php. When I try to add a term ID context, an autocomplete field is shown. Is there a way to change that in panels module so I can use php to select it ?
Of course, I'm asking that question because I can't reach my functionality with contexts and so on.
Thanks !
Comments
Comment #1
merlinofchaos commentedThere is no way to embed PHP in the context selector right now.
However, you can write a custom context plugin that returns whatever you like. Context plugins can return a different context than themselves, if they like. That allows you to choose your context however you like.