az-digital / az_quickstart

UArizona's web content management system built with Drupal 10.
https://quickstart.arizona.edu
GNU General Public License v2.0
30 stars 20 forks source link

Make it easier to bulk edit content on /admin/content by allowing filtering by taxonomy term. #3746

Open trackleft opened 2 months ago

trackleft commented 2 months ago

Motivation

It is currently somewhat difficult to manage content within the content management system.

Is your feature request related to a problem? Please describe.

I would like to bulk update content by taxonomy term.

Proposed Resolution

Add a taxonomy term filter to the form located at /admin/content

image

Describe the solution you'd like

More ways to filter content, including taxonomy term.

image

Describe alternatives you've considered

Provide a guide on Quickstart.arizona.edu on how to create bulk update forms.

Roles and Permissions considerations

A clear and concise description of how each of the following roles would be impacted by this change:

Additional context

Add any other context or screenshots about the feature request here.

ewlyman commented 2 months ago

Should we consider filtering by Vocabulary/Term or simply taxonomy Term?

ewlyman commented 2 months ago

https://news.arizona.edu/admin/content uses separate filters for two vocabularies: UAnnounce Tags and News Tags which are further restricted by filter settings within the view. We might be able to use the Views Reference Filter module to create a Terms select that depends on a Vocabulary select.

trackleft commented 2 months ago

We should allow any taxonomy term in one select box, IMHO, and probably expose the operator (yucky)

ewlyman commented 2 months ago

OK. Will try that out and see what it looks like.

ewlyman commented 2 months ago

We should allow any taxonomy term in one select box, IMHO, and probably expose the operator (yucky)

Just came across this issue for Drupal Core: https://www.drupal.org/project/drupal/issues/2784233 A single-select configuration may have to wait until this is resolved (and we have a D11 release of Quickstart, or the resolution is backported).

Going to press ahead and see if there's a workaround, but it might need multiple selects.

trackleft commented 1 month ago

We can work on that issue on drupal.org, and push that issue over the line.

There is an existing patch https://git.drupalcode.org/project/drupal/-/merge_requests/3681.diff

ewlyman commented 1 month ago

There is an existing patch https://git.drupalcode.org/project/drupal/-/merge_requests/3681.diff

Interesting. I wouldn't have expected to find this patch in the 11.x-dev issue queue and pointed at a fork that defaults to v. 9.2. Thank you for uncovering it! Much for me to figure out and to learn here. Tips on navigating something pretzel-y like this in future would be much appreciated!