Skip to content
Grav 2.0 is officially stable. Read the announcement →
Support

Pre-filled form with images media

Started by Matthieu Sartenaer 9 years ago · 0 replies · 607 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 Paul Hodges, 4 weeks ago
19 483 5 days ago
Support · by Lauw, 7 days ago
2 99 6 days ago
Support · by Anna, 3 weeks ago
4 426 1 week ago
Support · by gtx, 4 weeks ago
4 377 3 weeks ago
Support · by Anna, 1 month ago
9 484 3 weeks ago