Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Pre-filled form with images media

Started by Matthieu Sartenaer 9 years ago · 0 replies · 668 views
9 years ago

Hi Holks ! I'm really new in Grav's world but already in love 🙂

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 😕

Thank you for your help !

Matthieu

Suggested topics

Topic Participants Replies Views Activity
Support · by webmasterodp, 1 week ago
4 157 6 days ago
Support · by nwhitfield, 1 week ago
2 135 1 week ago
Support · by stell, 3 weeks ago
5 369 2 weeks ago
Support · by gravinator, 1 month ago
5 559 2 weeks ago
Support · by Gravver, 3 weeks ago
6 347 3 weeks ago