Answers.Body: <p>If <code>companyInfo</code> if your global and <code>logo</code> if your Asset field, then you'd use it just like you would <a href="http://buildwithcraft.com/docs/assets-fields#templating" rel="nofollow">anywhere else</a> keeping in mind that all relation fields (Assets, Users, Entries, Tags, Categories, etc.) always return a <em>collection</em> of results.</p>
  
  <p>So, <code>companyInfo.logo.first()</code> will return the first asset and if you want to loop through them all:</p>
  
  <pre><code>{% for image in companyInfo.logo %}
      {{ image.getUrl() }}&lt;br /&gt;        
  {% endfor %}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-11T16:04:53.683Z
Answers.LastActivityDate: 2015-09-11T16:04:53.683Z
Answers.UserDisplayName: Brad Bell
Body: <p>Is it possible to use an Asset field as a Global Set? For example:</p>
  
  <pre><code>{{ companyInfo.logo }}
  </code></pre>
  
Tags: <assets><globals>
Title: Use Asset field as a Global Set Variable?
ThreadText: # Use Asset field as a Global Set Variable?
  
  (Asked by: username_0 on 2015-09-11)
  
  Is it possible to use an Asset field as a Global Set? For example:
  
  ```
  {{ companyInfo.logo }}
  
  ```
  
  **Tags:** assets, globals
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-09-11. Score: 4 | Accepted answer
  
  If `companyInfo` if your global and `logo` if your Asset field, then you'd use it just like you would [anywhere else](http://buildwithcraft.com/docs/assets-fields#templating) keeping in mind that all relation fields (Assets, Users, Entries, Tags, Categories, etc.) always return a *collection* of results.
  
  So, `companyInfo.logo.first()` will return the first asset and if you want to loop through them all:
  
  ```
  {% for image in companyInfo.logo %}
      {{ image.getUrl() }}<br />        
  {% endfor %}
  
  ```
  
  
  ---
  
  