Is it possible to create/set a variable using just XPHP? I want to add some XPHP logic that would set a variable that I could then use in a widget format arg. I know I could do this with a custom module, but I would like to avoid that for this simple use case.
(Whoops, had my own Forum alerts misconfigured for this category, fixed!)
I’ve checked with the XPHPowers-that-be and the answer is not currently, no.
I know you know this, but you can set $_GLOBALS['foo']='bar';
in custom modules and that becomes available in pages and widgets as <xphp var="foo"/>
but there’s not currently a way to set that on-page in a way that the parser would be able to “see” in the right timeline to use.
That makes sense, and I assumed that was the case. It would be cool, though. Thanks for checking.