AEM 6.4: Creating own filter

Avatar

Avatar
Validate 1
Level 2
Magicr
Level 2

Likes

3 likes

Total Posts

33 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
Magicr
Level 2

Likes

3 likes

Total Posts

33 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Boost 3
Boost 1
View profile
Magicr
Level 2

03-08-2020

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.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back
Level 2
narendragandhi
Level 2

Likes

17 likes

Total Posts

14 posts

Correct reply

6 solutions
Top badges earned
Give Back
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Give Back
Level 2
narendragandhi
Level 2

Likes

17 likes

Total Posts

14 posts

Correct reply

6 solutions
Top badges earned
Give Back
Boost 5
Boost 3
Boost 10
Boost 1
View profile
narendragandhi
Level 2

03-08-2020

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.

Answers (2)

Answers (2)

Avatar

Avatar
Boost 1
Level 1
Ashish-Bhupta
Level 1

Like

1 like

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
Ashish-Bhupta
Level 1

Like

1 like

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile
Ashish-Bhupta
Level 1

03-08-2020

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

Avatar
Validate 1
Level 2
Magicr
Level 2

Likes

3 likes

Total Posts

33 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
Magicr
Level 2

Likes

3 likes

Total Posts

33 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Boost 3
Boost 1
View profile
Magicr
Level 2

31-08-2020

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.