How to use dynamic variable in smarty template function -


i need use variable inside popup tag smarty.

i can't declare var on server because it's dynamic (originating loop).

i tried different approaches assign tag like

{assign var=title value="$some_loop_var - sitename!"} 

or

{assign var="myfield" value=$some_loop_var + "btn_licencee_select"} 

always printed variable empty.

any ideas might doing wrong?

the solution quite trivial in end:

if use variable inside smarty function need "escape" backticks:

{popup text="`$some_loop_var`_static_part" } 

hope helps else well. took me hours figure out...


Comments