XF 2.2 $context in widget condition

Solution
In theory, this should work:

1612721109078.png

Or even just this:

1612721187377.png

Where test is the ID of the field.

However, it seems $context is not available in that field - it always evaluates to false, even though it works in the template area.

I'll see if there's another var which can be used.
Thank you Brogan!

The Variable works. I can see the content wirhin the widget. But I have problems with the condition. I want to display the widget only if the variable has been set in the first post.
 
In theory, this should work:

1612721109078.png

Or even just this:

1612721187377.png

Where test is the ID of the field.

However, it seems $context is not available in that field - it always evaluates to false, even though it works in the template area.

I'll see if there's another var which can be used.
 
Solution
Back
Top Bottom