VarunAgw Posted April 27, 2021 Share Posted April 27, 2021 {{$selectIcon = "icons/select-" . $selectLogoSize . ".svg";}} <img src="{media="{$selectIcon}"}" /> That's how my code looks like, but for some reason, second line doesn't work. But if I remove the variable and manually enter the path as static, it works. How do I fix it? Link to comment Share on other sites More sharing options...
VarunAgw Posted April 30, 2021 Author Share Posted April 30, 2021 Bump Link to comment Share on other sites More sharing options...
Solution Sonya* Posted April 30, 2021 Solution Share Posted April 30, 2021 Try this VarunAgw 1 Link to comment Share on other sites More sharing options...
VarunAgw Posted April 30, 2021 Author Share Posted April 30, 2021 Thank you @Sonya* Sonya* 1 Link to comment Share on other sites More sharing options...
Recommended Posts