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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Pre-filled form with images media

Started by Matthieu Sartenaer 9 years ago · 0 replies · 465 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 Thomas, 1 week ago
2 53 10 hours ago
Support · by Anna, 3 days ago
2 60 13 hours ago
Support · by Justin Young, 14 hours ago
1 30 14 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 56 5 days ago