Newbie Q: How to get the image url from custom image field

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 %}

explanation here https://learn.getgrav.org/16/cookbook/twig-recipes#displaying-an-image-uploaded-in-a-file-field

you can use also filepicker or mediapicker https://learn.getgrav.org/16/cookbook/twig-recipes#displaying-an-image-picked-in-a-mediapicker-field

@dimitrilongo, This is actually what i’m looking for. Thank you very much.