2017-09-07 1 views
0

폴더 기반 파일 수집에서 파일 및 관련 메타 데이터에 액세스하고 싶지만 debug는 metaDataLoaded = false이고 metaDataProperties는 비어 있다고 말합니다.TYPO3 Fluid File Collection 메타 데이터

은 여기 내 DCE에서 내 코드 유체 코드 :

{namespace dce=ArminVieweg\Dce\ViewHelpers} 
<f:layout name="Default" /> 

<f:section name="main"> 
    <f:for each="{field.fileCollection}" as="collection"> 
     <f:debug>{collection}</f:debug> 
     <f:for each="{collection.items}" as="item"> 
      <f:format.html>{item.name}</f:format.html> 
      <f:debug>{item.metaDataProperties}</f:debug> 
     </f:for> 
    </f:for>  
</f:section> 

왜 메타 데이터가로드되지 않는 이유는 무엇입니까? 파일의 메타 데이터에 어떻게 액세스 할 수 있습니까? 사전에

고맙습니다,

답변

1

가 사용 properties 이미지의 모든 속성 및 메타 데이터는 함께 병합됩니다.

<f:debug>{item.properties}</f:debug>

+0

고맙습니다. item.properties에 액세스 할 때 메타 데이터가로드 된 것 같습니다. 따라서 디버그에 표시되지 않습니다 ... –

+0

나는 awnser를 조정했습니다. 디버그 라인이 잘못되었습니다. 이것은 약간의 결과를 줄 것입니다. – minifranske