title: TYPO3 / Typoscript : get the media from page properties
body: <p>I'm working on Typo3 6.2 and I have a page with a media (picture) uploaded in the "resource" field t :</p>
  
  <p><a href="https://i.stack.imgur.com/aBwMq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aBwMq.png" alt="enter image description here"></a></p>
  
  <p>I'm trying to get the picture in my Typoscript and i believe i have to use a property like {field:something_here} but I don't know chich one ?</p>
  
  <p>EDIT :</p>
  
  <p>I already tried this, with no success (nothing is generated) : </p>
  
  <pre><code>    5 = FILES
      5 {
      references.data = levelmedia:-1,slide
      references.listNum = 0
      renderObj = TEXT
      renderObj.data = file:current:publicUrl
      }
  </code></pre>
  
  <p>and this :</p>
  
  <pre><code>    5 = FILES
      5 {
          references {
          table = pages
          uid.data = page:uid
          fieldName = ogimage
          }
          maxItems = 1
          renderObj = TEXT
          renderObj {
          data = file:current:uid
          }
          }
      }
  </code></pre>
  
  <p>and this :</p>
  
  <pre><code>    5 {
          file.import.data = levelmedia: -1, slide
          file.import = fileadmin/user_upload/
          file.import.listNum = 0
          file.import.override.field = media
      }
  </code></pre>
  
  <p>.. this code above generate a picture (<a href="http://www.mycompany.com/typo3conf/ext/news/Resources/Public/Icons/news_domain_model_news_add.png" rel="nofollow noreferrer">http://www.mycompany.com/typo3conf/ext/news/Resources/Public/Icons/news_domain_model_news_add.png</a>) but not the good gone !</p>