grav-plugin-flex-objects
grav-plugin-flex-objects copied to clipboard
Admin: Replace pages field type with parents field type
Field type pages does not work well with large sites. We should make the field as an alias of parents field and make sure that the new field works everywhere.
For example system.yaml has:
home.alias:
type: pages
@w00fz The new parents field doesn't work outside pages (no JS included).
The JS is included globally. It's admin.min.js.
The fact it's not working might just mean there's not all the expected elements and html loaded in the page.
@w00fz Oh, you're right. We have a separate modal which is only added for pages admin.
I'm wondering if we should add similar global insert points to HTML as we have for scripts and styles. We do that in Gantry, which allows HTML to be inserted into the beginning and the end of the body -- and only once if they are identical.
CC @rhukster