Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-11-13T11:04:56.187Z
Answers.Text: THanks, that works!!
Answers.UserDisplayName: Matthias
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-11-09T22:43:39.423Z
Answers.LastActivityDate: 2020-11-10T09:53:34.633Z
Answers.LastEditDate: 2020-11-10T09:53:34.633Z
Answers.UserDisplayName: Joorren
Body: <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>
  
Tags: <entry><language>
Title: How to display an asset (pdf) from both site languages on both sites?
ThreadText: # 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.
  
  ```php
  {# 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!!  
  
  ---
  
  