title: How can I get the category object in Fluid of Typo3 Content Element Pictures?
body: <p>after a long time of Google, I can get the categories of FAL Objects in Typo3 7.6 Fluid. But I can only return a String. I want to get an object like {data}.</p>
  
  <p>What I do:
  TypoScript</p>
  
  <pre><code>lib.category = CONTENT
  lib.category {
      table=sys_category
      wrap=|
      select {
          pidInList = root,0,1 
          recursive = 99
          max=10
          selectFields=sys_category.title,sys_category.uid
          join = sys_category_record_mm on sys_category_record_mm.uid_local = sys_category.uid join sys_file_metadata on sys_file_metadata.uid = sys_category_record_mm.uid_foreign join sys_file_reference on sys_file_reference.uid_local = sys_file_metadata.file
          where.field = fuid
          where.wrap = sys_file_reference.uid=|
      }
      renderObj=COA
      renderObj {
          1=TEXT
          1.field = uid
          2=TEXT
          2.field = title
      }
  }
  </code></pre>
  
  <p>In Fluid I have:</p>
  
  <pre><code>&lt;f:for each="{files}" as="file"&gt;
      &lt;p&gt;
      - {file.uid}&lt;br /&gt;
      - &lt;f:cObject typoscriptObjectPath="lib.category" data="{fuid:file.uid}" /&gt;
      &lt;/p&gt;
  &lt;/f:for&gt;
  </code></pre>
  
  <p>On the webpage it prints:</p>
  
  <ul>
  <li>88</li>
  <li><p>3Black7Small</p></li>
  <li><p>89</p></li>
  <li><p>2Blue7Big</p></li>
  <li><p>90</p></li>
  <li>1Red</li>
  </ul>
  
  <p>But I think an object in Fluid is better, so I can use f:for each etc. But I don't know how I can return it.</p>
  
  <p>Can anybody help me?</p>