Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Pre-filled form with images media

Started by Matthieu Sartenaer 9 years ago · 0 replies · 639 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 complanar, 5 days ago
6 134 8 hours ago
Support · by Rick Beebe, 5 days ago
2 99 2 days ago
Support · by blu3prince, 2 days ago
0 49 2 days ago
Support · by alex, 4 days ago
2 90 3 days ago
Support · by Marcel, 1 week ago
1 142 3 days ago