How do I set default value for the imagepicker

musangowope
Shopify Partner
2 0 1

Hi community,

Hope everyone is well. I was wondering whether it is possible to set a default value for the imagepicker type in index.json

Kind regards,

Musango

Replies 2 (2)

r8r
Shopify Expert
2555 327 940

@musangowope – unfortunately – according to the documentation – that's not possible.

Screenshot 2021-09-04 at 13.41.59.jpg

Mario

★ Ja, man kann mich buchen; schreib mir eine Nachricht!
★ Hinterlass gerne ein Like und markiere meine Antwort gegebenenfalls als Lösung. Ich freue ich mich immer über eine Spende an die (Kinder)krebshilfe oder eine kleine Aufmerksamkeit.
Studio Mitte

gasp_k
Visitor
1 0 1

Hi!
Doing it in schema isn't possible.
The way you can put the default image src:

<img src="{% if section.settings.image == blank %}
https://cdn.shopify.com/s/files/filepath {% endif %}
{{ section.settings.image | img_url: '200x' }}" alt="">