How to filter files in Asset Picker dialog based on content types?
After you have installed the Quark artifact PWC (Platform Web Components), do the following:
- Import the asset picker component QppAssetPickerComponent from @quark/platform-components-ng library to your application’s app.module.ts.
- In the class AssetPickerConfig, provide the filterId, which is an input for the component to filter assets.
- To filter any custom content type in the Asset Picker dialog, define the corresponding asset browser id in the file applicationservice/conf/asset-filters-ext.json using the following code snippet:
- Pass the browser id in AssetPickerConfig to apply the filter for your custom content type.