Pre-filled form with images media


#1

Hi Holks ! I’m really new in Grav’s world but already in love :slight_smile:

Here is my concern, I have a blueprint form :

title: Gallery
@extends’:
type: default

form:
fields:
tabs:
type: tabs
active: 1
fields:
images:
type: tab
title: Images
fields:
header.images:
name: images
type: list
label: Images
fields:
.full:
type: filepicker
folder: '@self
preview_images: true
label: Select a file

All is fine with that but I would like to have this form in admin pre-filled with all images in media… is it possible?

Maybe use data-default@ and data-options@ could be the trick but don’t know how to use it :confused:

Thank you for your help !

Matthieu