Within my image fieldset I created a new field for the width. I want to use that field within my image set. Is that the correct approach, or should this be done another way?
Anyway, I want to access the width value within the glide holder, I just don't know how to use it. See USE width HERE
below.
<div class="image {{ classes }}">
{{ if width }}
{{ glide:image width="USE width HERE" }}
<img src="{{ url }}" width="{{ width }}" height="{{ height }}" alt="{{ alt }}">
{{ /glide:image }}
{{ else }}
<img src="{{ url }}" width="{{ width }}" height="{{ height }}" alt="{{ alt }}">
{{ /if }}
</div>