Hi, I have a custom image field and i want to get the url in twig.
test.yaml
header.slider:
type: file
label: Slider
type: file
destination: ‘@self’
description: Only .png, .jpg, .jpeg file types are allowed.
multiple: true
style: vertical
accept:
- .png
- .jpg
- .jpeg
ordering@: 2
test.html.twig
{% extends ‘partials/base.html.twig’ %}
{% block content %}
{% for slide in page.header.slider.images %}
<img src="{{ slide.url }}">
{% endfor %}
{% endblock %}