Highlighted

AEM 6.4 - Assets Admin Search Rail customization - Issue with Property Predicate

Avatar

Avatar

sujeetsharma

Avatar

sujeetsharma

sujeetsharma

06-07-2018

We are customizing Assets Admin Search Rail Search form to add more filters in AEM DAM search filters panel,

Property Predicate is working pretty well but issue is that after search AEM is not adding search filter with search key in the upper rail.

AEM is adding search filter in upper rail only for filters created using options predicate.

Please see the screen shot.

Can someone help in this?

Screen+Shot+2018-07-04+at+8.53.33+PM.png

Replies

Avatar

Avatar

geebanm23911436

Avatar

geebanm23911436

geebanm23911436

15-10-2018

Hi Sujeet,

It seems to be missing, not sure if it is by design. However you can overlay the js file for the property predicate and add the functionality to the prediacte - /libs/dam/gui/coral/components/admin/customsearch/searchpredicates/propertypredicate/clientlibs/propertypredicate.js

Basically you would need to add a method to add/update the tag upon pressing of Enter and then submit the form. Again you would need to remove the tag when the property is cleared. You can reference /libs/dam/gui/coral/components/admin/customsearch/searchpredicates/pathbrowserpredicate/clientlibs/pathbrowserpredicate/js/pathbrowserpredicate.js to see how it is done, the handling for both the predicates would be very similar. The code is pretty self explanatory.

Thanks,

Manas