Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295840

Taxonomy overview list with exposed filter

$
0
0

Problem/Motivation

The taxonomy overview page could become huge, with many pages, so it would be handy to have a filter to let the editor find terms

Steps to reproduce

Create a vocabulary with many terms to see the problem. You can install Devel and enable "Devel generate" submodule to be able to use the command drush devel-generate:terms --bundles=tags 100. This will create sample terms with hierarchy in the tags vocabulary.

Proposed resolution

Add a filter to the taxonomy overview page, to let the editor filter and better find a term. By default, this is the handler that renders the overview page form : Drupal\taxonomy\Form\OverviewTerms

Remaining tasks

  • [✓] - Create a first simple version
  • [✓] - Solve the erratic behavior when hierarchy is involved
  • [✓] - Tests

User interface changes

A new "exposed filter" is added to the taxonomy overview page, that lets the editor filter terms by an input string.

Before:
Before without the filter

After:
After with the filter

Highlighted results and warning about disabled reordering:
Highlighted results and warning about disabled reordering

Introduced terminology

None.

API changes

None.

Data model changes

None.

Release notes snippet

None.


Viewing all articles
Browse latest Browse all 295840

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>