Skip to content

Page List Select template restriction issues #1314

@adrianbj

Description

@adrianbj

Short description of the issue

If you set the parent to the grandparent of the pages that should be selectable and you set the template restriction to only allow selection of those grandchildren, the "Select" action button shouldn't show when hovering over the children.

In this example, the children (eg. Ecosystems) of Media Categories have the media_category template and the grandchildren (eg Coastal/Marine) have the Media Album template. But, as you can see, the "Select" action button is shown next to "Ecosystems" which is not selectable because of the template restriction. Of course, when you go to save the page you get an error, eg:

PagesEditor: Error saving field "Media Category" — Page 5120 is not valid for media_category (Page 5120 does not have required template(s): 72)

but it's confusing for users to know what they are and are not allowed to select. And even then, the error is very confusing for non-technical users. I have often noted that I think errors for non-superusers need to be more friendly and I think this is a good example, but more importantly, I don't think they should have the option to select invalid pages in the first place.

image

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions