8

I was wondering if broker query has any criteria which can work for Location/Folder path to search components inside a folder. I am intended to search all the binary components based inside a folder(recursively) in my DXA based application. Can anyone share if there is any out of the box criteria available which can be used to search multimedia components in a folder hierarchy. Thanks in advance.

3

I did some research and there is no such criteria to look for components in a certain folder. BUT in your case for multimedia components you should try:

PublicationMultimediaPathCriteria criteria = new PublicationMultimediaPathCriteria("/some/MM/path%", Criteria.LIKE);
  • Above criteria won't work as the path is same(Default to publication properties for multimedia path) for all multimedia item. – Mukesh Kumar Feb 10 '17 at 8:38
  • 1
    so... do you mean the folder used in CM? This data is not available once published, unless you add it to the component metadata yourself (manually or through code) – Nuno Linhares Feb 10 '17 at 17:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.