- Issue created by @bhagyalakshmi
- 🇭🇺Hungary Balu Ertl Budapest 🇪🇺
Currently, there is no option implemented yet for filtering assets by their file formats. As a workaround, you can always search for their filename extensions:
However, it might be worth noting that this does not guarantee 100% precision for the following reasons:
- DAM assets in Widen are not required to have a valid extension at the end of their file names. Therefore it can happen, that an asset will not fall into the scope of your search, although it is the same file format.
- When asset versioning is enabled on your Widen software, then new versions with various file formats are allowed to upload to the exact same asset item. Doing so an asset originally uploaded as a video file might have a PDF document as its second version, but still keep its initial file name together with the file extension (eg. “.mov”). When Drupal synchronizes such a mixed asset, your search results might falsely include this asset.
- 🇺🇸United States capysara
If you're looking for a views filter, you can add an exposed filter for Property Value, set Property path from incoming object to "ff". That gives you a text field that you can search for the File Format. I've added one to my acquia_dam_asset_library view, to the Widget display so it displays in the media library modal. Note: the filter Operator says, "Is equal to" but it works like a "Contains" filter.
It pulls remote data from DAM's Asset Digest. Asset info->File info->Format. I believe that this file format data is automatically added on upload, see the File info section.
- 🇭🇺Hungary Balu Ertl Budapest 🇪🇺
@capysara → thanks for sharing such a creative idea of putting together a solution.
Recently (just a couple of hours ago) I've gained some fundamental understanding: almost all search query strings you can put together on the Advanced Search page of Widen GUI should show more-or-less the same results in Drupal's media library modal window too (Click to open in bigger size):
Of course, if you need only one file format to filter to, then use the query like this:
ff:({TIFF})
. - 🇮🇳India bhagyalakshmi
Is it possible to restrict the file formats programmatically before rendering the view.
Example if it is Acquia DAM Image Asset, only png, jpeg format files should load.
If it is Acquia DAM video Asset, only mp4 format files should load - 🇭🇺Hungary Balu Ertl Budapest 🇪🇺
@bhagyalakshmi → Currently, no customization options have been implemented to achieve such results.
- 🇭🇺Hungary Balu Ertl Budapest 🇪🇺
The initial question in the issue title has been answered in Comment #4 ✨ searching assets based on file format Active , therefore I think we can close this one.
- Status changed to Fixed
3 months ago 8:34am 31 December 2024 Automatically closed - issue fixed for 2 weeks with no activity.