1

I need to display booth local and localized entries in the same page. So I fetch the different localized entries like this :

{% set localeEntry = craft.entries.id(myEntry.id).site('default').one() %} {# get the locale data #}
{% set enEntry = craft.entries.id(myEntry.id).site('en').one() %} {# get the english data #}

This works perfectly when the page is displaying in the browser, but the variables return empty when the page is displaying in the Craft CP's Live Preview panel.

1 Answer 1

1

Resolved here. Does not appear on the doc, although.

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.