We are trying to generate a list of all published Download components on our site (these components all use the same (Multimedia) schema). We are using DXA 2.0 Java and had the idea to use the out of the box broker query functionality (QueryImpl class).
We have run into a number of issues so I was wondering if there isn't just an easier way. Has anyone done this kind of thing before and if so how?
The main problem we have is getting the components published with a Dynamic Component Template (otherwise they are not returned as the result of a broker query). I thought that the DXA Custom Resolver would take care of this, but it doesn't seem to pick up components linked from the content of Rich Text Fields. Is this deliberate? Is there any way to query the downloads without having them published as dynamic components?