Expand my Community achievements bar.

How to add hidden predicate to Touch UI search

Avatar

Level 1

I have a requirement. I need to add one hidden predicate to the “Assets tab in the Side panel”  which should restrict the asset result. With out any search term the search url is “http://localhost:4502/bin/wcm/contentfinder/asset/view.html?_dc=1481626014721&query=order:"-jcr:content/jcr:lastModified"+&mimeType=image,application/x-ImageSet,application/x-SpinSet,application/x-MixedMediaSet&itemResourceType=cq/gui/components/authoring/assetfinder/asset&limit=0..20&_charset_=utf-8&_=1481626003056”.

If I add any hidden predicate for example hidden predicate on a property “jcr:content/metadata/dc:status=Complete” then the search url always should be

http://localhost:4502/bin/wcm/contentfinder/asset/view.html?_dc=1481643420499&query="jcr:content/metadata/dc:status”:”Complete”+order:"-jcr:content/jcr:lastModified"+&mimeType=image,application/x-ImageSet,application/x-SpinSet,application/x-MixedMediaSet&itemResourceType=cq/gui/components/authoring/assetfinder/asset&limit=0..20&_charset_=utf-8&_=1481626003059” and it will show only the assets which are having the property dc:status=Complete.

Please let em know how can I add the hidden predicate. Hope you understand the requirement.

Thanks in advance.

Thanks,

Srini.

0 Replies