I have a website with three locales (de, fr, it). On a Matrix Field i have Assets where are only uploaded in German language. Now i'm trying to show those assets also in French and Italian language.
Any ideas to solve this? I have tried to put a .locale('de')
to get the german fields, but if i change the language, the assets are not displayed.
Here is my code:
{% for entry in craft.entries.section('sitemap','staticContent').status('live').slug(lastSegment).limit(1) %}
{% for block in entry.multiContent %}
{% if block.type == "documents" and block.downloadbarAlsDigitalesDokument == "1" %}
<div class="section-content-downloads">
<div class="container">
{% set items = block.datei %}
<ul class="list-unstyled">
{% for item in items %}
<li>
<a href="{{ item.url() }}" title="Download: {{ item.title }}" target="_blank"><i class="fa fa-file-{{ item.extension }}-o"></i> {{ item.title }}</a>
</li>
{% endfor %}
</ul>
</div>
</div>
{% endif %}
{% endfor %}
{% endfor %}
locale('de')
parameter to the matrix criteriaentry.multiContent
? – carlcs Mar 31 '16 at 23:11