Hi,
I'm currently setting up a website and for special html-structure with rows I'm using the "+blocks"-Editor. Every row is a snippet-item in the "+blocks"-Editor. So that snippet is used several times in the same "+block"-Variable.
In my snippet I'm using variables like @{ :headline }
or @{ :image }
.
The problem I'm struggling with is, when I for example set a value for the variable @{ :image }
in the first use of the snippet in the +blocks-Editor this value is used in all other following snippet-items even there is no value for @{ :image }
. I've tried to reset the value of @{ :image }
if no image exists with <@ set { :image: '' } @>
in a following item but actually I've found no way to "clear" the variable so it has no content and is emty. Every snippet uses the value of the first set of @{ :image }
even if it's emty or doesn't exist.
Is there a way to do "clear" a value?
I hope this description of my problem is clear enough 😄
Thanks for your help!