title: Fluid menu element with image from page resources?
body: <p>I've created a new fluid menu element and I need it to show an image for each page. The image is stored in the page resources. </p>
  
  <p>When I debug the template, each menu item shows <code>data.media =&gt; 1</code> but media cannot be expanded any further. How can I get the image to render in my template?</p>
  
  <p>TS:</p>
  
  <pre><code>ext_menu_image &lt; lib.contentElement
  ext_menu_image {
      templateName = MenuImage
      dataProcessing {
          10 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
          10 {
             special = directory
             special.value.field = pages
             levels = 1
             as = menuItems
             expandAll = 1
             titleField = nav_title // title
          }
      }
  }
  </code></pre>
  
  <p>Template:</p>
  
  <pre><code>&lt;f:for each="{menuItems}" as="page"&gt;
    {f:uri.image(image:page.data.media.???)}
  &lt;/f:for&gt;
  </code></pre>