TYPO3 + DCE - display image thumbnail in backend -



TYPO3 + DCE - display image thumbnail in backend -

i using typo3 6.2 , extension dce (dynamic content elements).

everything works fine, except wasn't able display thumbnail custom content elements in backend.

for frontend utilize fluid template:

<f:for each="{dce:fal(field:'image', contentobject:contentobject)}" as="filereference" iteration="iterator"> <f:if condition="{iterator.isfirst}"> <f:image src="{filereference.uid}" alt="" treatidasreference="1" width="140px"/> </f:if> </f:for>

it works fine. if utilize same code backend (in field "bodytext preview template (fluid)") doesn't output anything. reason this?

by way, more elegant way output first image? guess wouldn't have utilize loop then?

for reason need refer "fields" instead of "field" in backend previews

class="snippet-code-html lang-html prettyprint-override"><f:if condition="{fields.image}"> <f:for each="{fields.image}" as="filereference"> <f:image src="{filereference.uid}" alt="" treatidasreference="1" width="140px"/> </f:for> </f:if>

typo3 typo3-6.2.x

Comments

Popular posts from this blog

javascript - I need to update the text of a paragraph by inline edit -

javascript - THREE.js reposition vertices for RingGeometry -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -