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

Use a form in admin panel

Started by lucie 1 year ago · 4 replies · 77 views
1 year ago

Hello everyone,
New to the forum, I'm new to grav, which I'm using to create a website for a training organisation. I've managed to set up the fontend, but I'm stuck on the administration part. I will try to explain my request clearly...
I'd like to have a form in the admin interface so that users can enter information and upload documents...
But although I can create a form in fontend, I can't access it when I'm in the admin panel...
Could you tell me if this is feasible, or if I'm mistaken in my thinking.
Thank you in advance.

Translated with DeepL.com (free version)

1 year ago

What you most likely want, is Flex Objects. You can have whatever form you want in the Admin

1 year ago

@lulou, Not sure what you requirements are, but I can imagine that a "page" per course would suffice. In that case you can create a dedicated page blueprint (= form attached to page template) that has all the fields you need. Uploading files to page is no problem.

See for example the blueprint for a default page: /system/blueprints/pages/default.yaml
It has upload of files build in.

You can extend that blueprint with your own fields like it has been done by Quark: /user/themes/quark/blueprints/default.yaml

1 year ago

thank you Karmalaska, this is exactly what i need !!! could you know if i can make a dynamic select in a Flex objects ?

1 year ago

https://learn.getgrav.org/17/forms/blueprints/fields-available
https://learn.getgrav.org/17/forms/forms/fields-available

using these are easy now, they are actually making doing things really easy when i think about what they do, but when i first started it was so hard for me to learn because i didnt know anything but frontend.
i wish you good luck if you have time, if you dont i wish you a professional support :D

last edited 04/07/25 by Gez

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 51 7 hours ago
Support · by Anna, 2 days ago
2 58 10 hours ago
Support · by Justin Young, 11 hours ago
1 30 11 hours ago
Support · by Duc , 1 week ago
2 63 5 days ago
Support · by Colin Hume, 1 week ago
2 55 5 days ago