Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

AEM 6.4: Creating own filter

Avatar

Level 7

In Author mode an author can choose some stored assests from assests finder, former content finder. To reduce the size of all founded assests some filters has being added by default (images, documents and so far). For one of our application there is a wish to provide zip and executables files. The upload into the DAM is not the problem. The problem is to find them into the assest finder. The provied filters do not cover .zip and .exe files.

The idea is now to create an own filter. How can I achieve this? Where is the placed to store it?

 

Thanks in advanced.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

You can navigate to http://localhost:4502/libs/cq/core/content/tools/customsearch.html/conf/global/settings/dam/search/f... to customize the assets search form.

 

Upon selecting the File Type element you can see the datasource from where it's being populated. Refer the screenshot -

Screen Shot 2020-08-03 at 5.31.18 PM.png

You can then overlay that node and add another datasource with your list of mime types.

 

Note - I see zip file type is already in the list so you may only need to add exe.

View solution in original post

8 Replies

Avatar

Level 1

Hi @Magicr ,

 

In addition to using pre-existing predicates, Experience Manager developers can also create their own predicates using the Query Builder API .

 

This might help , please refer to : https://docs.adobe.com/content/help/en/experience-manager-65/assets/extending/searchx.html 

 

 

Avatar

Correct answer by
Community Advisor

You can navigate to http://localhost:4502/libs/cq/core/content/tools/customsearch.html/conf/global/settings/dam/search/f... to customize the assets search form.

 

Upon selecting the File Type element you can see the datasource from where it's being populated. Refer the screenshot -

Screen Shot 2020-08-03 at 5.31.18 PM.png

You can then overlay that node and add another datasource with your list of mime types.

 

Note - I see zip file type is already in the list so you may only need to add exe.

Avatar

Level 7
Hello, accendently I marked this answer as helpful. I'm sorry.

Avatar

Level 7

I haven't yet tried out both suggentions. Update: Someone else has marked this answer as helpful.

Avatar

Level 7

@narendragandhi  I could manage to add the datatype to a file category. But It seems is it useless, because the assets finder does not work properbly. First: you cannot choose all categories and second when you extend selectable categories the result is still empty.

 

Avatar

Community Advisor
Hi @Magicr, Thanks for trying it out. I see couple of issues in my original suggestion. Here are the changes you need to make to get this working - Update the mime type path to /mnt/overlay/dam/content/predicates/omnisearch/mimetypes so that it takes care of merging the list. Also to get the search working we will also need to add the mimetype under /apps/dam/content/predicates/mimetypes/archives.

Avatar

Level 7

@narendragandhiDue to holiedays I was unable to reply. The suggested folder "/mnt/overlay/..." does not exists. So I don't know what I have to do. However, an external advisor found a site at the Internet for a working solution. I've posted a link as an answer to my question.

Avatar

Level 7

An external advisor found a working solution for this issue. http://experience-aem.blogspot.com/2019/06/aem-65-show-approved-assets-in-asset-finder.html shows an example for AEM 6.5 wich is working for 6.4 either. To create an additional filter is using this provided script and label it as you need. The add your own collection of mimetypes to ii.