cms icon indicating copy to clipboard operation
cms copied to clipboard

[4.x]: Asset index: Apply filters to files in all subfolders

Open wsydney76 opened this issue 3 years ago • 1 comments

What happened?

Description

When searching for assets, there is a Search in subfolders checkbox that lets you find files in all subfolders.

However, we could not figure out how to do the same for filters in a simple way.

E.g. add a filter 'width > 2000' and press Apply, the filter results will only show files in the current folder.

A workaround for now is to additionally search for * and check the Search in subfolders checkbox.

Steps to reproduce

  1. Add and apply a filter.
  2. Miss files in subfolders.

Expected behavior

Something like a checkbox Apply to subfolders

Actual behavior

Could only figure out a workaround, that most editors will not find.

/Klara

Craft CMS version

4.4.1

PHP version

8.1.13

Operating system and version

Linux 5.15.90.1-microsoft-standard-WSL2

Database type and version

MySQL 10.4.27

Image driver and version

Imagick 3.7.0 (ImageMagick 6.9.11-60)

Installed plugins and versions

wsydney76 avatar Mar 13 '23 11:03 wsydney76

Also - when filtering it would be nice to just remove all folders and show a flat list of files.

mattcdavis1 avatar Jul 06 '23 02:07 mattcdavis1