<p>You could try and fetch the other pdf by creating an entry query for the different language, and getting the pdf from there.</p>
<pre class="lang-php prettyprint-override"><code>{# if you have only 2 languages: #}
{% set otherLanguage = craft.entries().id(entry.id).siteId(['not', entry.siteId).one() %}
{{ otherLanguage.PDF.url }}


{# if you have more languages (and want all the PDFs: #}
{% set otherLanguages = craft.entries().id(entry.id).siteId(['not', entry.siteId).all() %}
{% for $otherLanguage in $otherLanguages %}
    {{ otherLanguage.PDF.url }}
{% endfor %}
</code></pre>

CC BY-SA 4.0
2020-11-13T11:04:56.187Z
THanks, that works!!
Matthias
CC BY-SA 4.0
2020-11-09T22:43:39.423Z
2020-11-10T09:53:34.633Z
2020-11-10T09:53:34.633Z
Joorren
<p>How do I display an asset (PDF) from both site languages on both sites? I would like to offer both German and English versions of a PDF on both the English and German sites.</p>
<p>I now have <code>{{ entry.PDF.url }}</code> and wondered if I can add a <code>.site()</code> direction to the entry query.</p>

<entry><language>
How to display an asset (pdf) from both site languages on both sites?
# How to display an asset (pdf) from both site languages on both sites?

(Asked by: username_0 on 2020-11-09)

How do I display an asset (PDF) from both site languages on both sites? I would like to offer both German and English versions of a PDF on both the English and German sites.

I now have `{{ entry.PDF.url }}` and wondered if I can add a `.site()` direction to the entry query.

**Tags:** entry, language

---

## 1 answers

### Answer by username_1 on 2020-11-09. Score: 1

You could try and fetch the other pdf by creating an entry query for the different language, and getting the pdf from there.
{# if you have only 2 languages: #}
{% set otherLanguage = craft.entries().id(entry.id).siteId(['not', entry.siteId).one() %}
{{ otherLanguage.PDF.url }}


{# if you have more languages (and want all the PDFs: #}
{% set otherLanguages = craft.entries().id(entry.id).siteId(['not', entry.siteId).all() %}
{% for $otherLanguage in $otherLanguages %}
    {{ otherLanguage.PDF.url }}
{% endfor %}

> **Comments:**
> **username_0**: THanks, that works!!  

---

