I’m following the solution for creating a custom add post modal here: Custom Page Creation Modal
I’m following this down to a tee and it doesn’t seem to add the option in the bar at the top.
I must be overlooking something here.
My user/blueprints/admin/pages/new_post.yaml
I’m literally copying and pasting directly from the the documentation. I have a file named posts
in my pages
directory which stores all my current posts.
form:
validation: loose
fields:
section:
type: section
title: Add Post
title:
type: text
label: Post Title
validate:
required: true
folder:
type: hidden
default: '@slugify-title'
route:
type: hidden
default: /posts
name:
type: hidden
default: 'post'
visible:
type: hidden
default: ''
blueprint:
type: blueprint
In the user/config/plugins/admin.yaml
add_modals:
-
label: Add Post
blueprint: admin/pages/new_post
show_in: bar
I’ve triple checked my file paths and still no luck.