grav-plugin-admin
grav-plugin-admin copied to clipboard
Create custom page creation modal - “Undefined index: rout”
Hello every one!
I want to create a custom page creation modal. But I get a error “Undefined index: rout”.
I did exactly as it says here but still the same result.
This is what I have in my blueprint.
Can someone help me plz. I don't know how to solve this.
Can you send us a screenshot from the error?
Can you send us a screenshot from the error?
After I click on "add Case" this is what I got
After clicking on "Continue" I got this.
@w00fz It looks like JS may be messing up with the form and removing the route...?
The issue is in admin 1.9.12 (as well as in 1.10).
The issue is in admin 1.9.12 (as well as in 1.10).
What should I do ? Or must I wait until it's fixed?
Hi !
I'm experiencing a similar issue than @MohamedAlwash
I followed instructions of Admin Receipe, have a similar user/blueprints/admin/pages/yamlfile.yml. My button appears in Page section of Admin, clicking on it open a empty modal with only "Continue" button (as if blueprint was completely ignored). When clicking on that button, I don't have any error message, page is just refreshing and nothing happens.
Any news about that issue ?
Versions Grav v1.6.26 Admin v1.9.15
Thanks 🙂 Philippe
As of today with Admin 1.10 released, this seems fine on the JS / Rendering side but fails on the backend:
POST looks correct:
data[title]: test
data[folder]: @slugify-title
data[route]: /posts
data[name]: post
data[visible]:
data[blueprint]:
task: continue
admin-nonce: 36156b82c01b04214de814d1aa84d0a8
But it does seem to fail:

Any news?
I can confirm the behavior documented by @w00fz – the POST looks good as far as I can tell but I'm immediately redirected to the same 404 page. For the sake of documentation, this is the console output in devtools.