1

I'm returning to a Sprout report on a project that was idle for a few years due to Covid. I was puzzled as to why both my settings and report templates were yielding nothing. The only change in the interim was adding additional sites to this install.

1 Answer 1

1

The fix was elusive but ultimately simple. In order for reports queries to work on a multi-site Craft 3 install, you must reference the site slug or site ID.

GOOD

{% set entries = craft.entries.section('blat').siteId(2).all() %}

BAD

{% set entries = craft.entries.section('blat').all() %}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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