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

Use a form in admin panel

Started by lucie 2 years ago · 4 replies · 325 views
2 years 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)

2 years 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

2 years 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 webmasterodp, 1 week ago
4 157 6 days ago
Support · by nwhitfield, 1 week ago
2 136 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