wagtail-nest / wagtail-modeladmin

Add any model in your project to the Wagtail admin. Formerly wagtail.contrib.modeladmin.
Other
22 stars 8 forks source link

Feature request: select list or autocomplete when prompted for parent page #17

Open brylie opened 5 years ago

brylie commented 5 years ago

Issue Summary

I have a custom content model inheriting from Page, and have created a custom Admin page:

Screenshot_20190508_224855

When clicking the "Add Contact" button, I am prompted to select a parent page:

Screenshot_20190508_224557

Since we expect to have dozens or hundreds of contacts, this list grow to be too long for a radio-select.

How can I configure this page to use an autocomplete or page select widget?

Steps to Reproduce

  1. create model inheriting from Page, allowing model to be child of self
  2. create Admin page for model
  3. add several instances of model
  4. visit custom admin page and click "Create " button
loicteixeira commented 5 years ago

You might want to have a look at Customising ChooseParentView. Please note though that support questions are better answered on Stack Overflow or Slack, see the Support page in the documentation. If you have further questions, please do not reply to this issue and use those channels linked.

I'll keep that issue open though because I think it could be addressed with better UI. Most of website will end up with a good number of pages which will make the radio buttons unusable.

brylie commented 5 years ago

I'll keep that issue open though because I think it could be addressed with better UI. Most of website will end up with a good number of pages which will make the radio buttons unusable.

Jep, there is a fine line between a support and feature request. Agreed that this would be a good core feature enhancement :-)

jnns commented 2 years ago

We're running into the same problem right now. It's not only that the user experience is bad; we have so many pages that the page load times out.

I will have a look at customizing the ChooseParentView with wagtail-autocomplete.