We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24208
    • 17 Posts
    hi, i am tryung to set the @EVAL in Template Variable. The point is that i need to use content of another TV and explode this to count some.

    for example (lighted)

    TV_A: 300||500||1500
    TV_B: @EVAL $sizes = "[*TV_A*]"; values = explode ("||", $sizes); foreach ($values as $val) options.= $val*0.7*1.9.’ ’; return $options.

    however i am trying i am not able to explode the variable $sizes. all stays in the first array.
      • 24208
      • 17 Posts
      ok, i have included the variable content through modx->getTemplateVarOutput instead of [**] and now all running as excepted. smiley