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

merlinofchaos’s picture

Status: Active » Fixed

There 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.

Status: Fixed » Closed (fixed)

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