Problem/Motivation
If there a lot of managed files on a site it may cause Feature creation page crash. Also it's difficult to select related files to some entity.
Proposed resolution
Create a "Usage" filter. It means to display only those files which are related to the entities selected on the UUID Features settings page. Then the setting page can be used as filter for available files options on the feature creation page.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | uuid_features-usage_filter_for_files-2511824-4.patch | 2.99 KB | oleksiy |
Comments
Comment #1
oleksiyComment #2
oleksiyComment #3
andypostwould be great to add a comment about why we search for bundles...
Suppose without file_entity files has no bundles, so better to handle both cases.
Comment #4
oleksiyFile entity has a bundle named "file" even without file_entity module installed. Have checked it on clean Drupal installation.
Comment #5
andypostSure! So now the question to maintainer - long lists should be mentioned in README.txt or some another codeto manage paging for files
could be very big, so maybe better to use here entityFieldQuery() and limit the list somehow with code comment
Comment #6
socialnicheguru commentedconflicts with Support File entities and file, image and media fields Primary tabs View(active tab) Edit