1

How do I pull in entries from every site? I can't even seem to pass more than one argument to the .siteId parameter:

{% set entries = craft.entries({ 
    section: 'resources', 
    siteId: [1,2,3],
}).all %}

That gives me the error:

Argument 2 passed to craft\services\Elements::getPlaceholderElement() must be of the type integer, array given

I also tried:

{% set entries = craft.entries({ 
    section: 'resources', 
    siteId: craft.app.sites.allSiteIds,
}).all %}

But got the same error.

2

Per current conversation on Github, this isn’t possible. https://github.com/craftcms/cms/issues/2854

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.