Hi Forum
I created a template-variable and i’m trying to manipulate the options and it’s default value.
Those options and default values should be generated in a php script. I’m using the @EVAL -binding to implement that.
Now i have a strange problem.
I can’t create the default-value of a TV with the @EVAL -binding.
For a simple test i tried to set this code.
defaultValue=
This code doesn’t select the correct option though the creation of the available options seems to work:
options=
@EVAL return "red==1||green==2"
Am I doint something wrong? Or
does the default-value not support @Bindings?
PS: I’m using modx 1.0.2
////////edit:
Because I got no solution until now, i created a screenshot with what I am trying to do. May this helps you to better understand my problem (even if my interface language is german).
can anyone reproduce my problem??? I’m stuck here