I want to save the full image path (sonata media package) to a variable in a branch. Is it possible?
If I write:
{% set pic = path item.image, 'big' %}
it gives me an error: Unexpected token "name" of value "item" (expected "end of statement block") ...
If I write:
{% set pic = item.image %}
then it works, but it only stores the file name, not the full path.
source
share