3

Is it possible to search through multiple ElementTypes?

Instead of this:

craft()->elements->getCriteria(ElementType::Entry)->limit(10)->search('Test');

Doing something like this:

craft()->elements->getCriteria(ElementType::Entry, ElementType::Asset, ElementType::Category)->limit(10)->search('Test');
0

You'd have to do the in multiple queries at this point.

Consider voting for this feature request, which is asking for what you're looking for.

| improve this answer | |

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.