grav-plugin-flex-objects icon indicating copy to clipboard operation
grav-plugin-flex-objects copied to clipboard

Admin: Replace pages field type with parents field type

Open mahagr opened this issue 6 years ago • 3 comments

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

mahagr avatar Sep 26 '19 13:09 mahagr

@w00fz The new parents field doesn't work outside pages (no JS included).

mahagr avatar May 27 '21 09:05 mahagr

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 avatar May 27 '21 20:05 w00fz

@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

mahagr avatar May 28 '21 06:05 mahagr