TYPO3 extension news by Georg Ringer - Images in RSS Feed -
i create rss news feed news extension georg ringer. works fine. except, didn't find way yet display images in news feed.
does know how can build in image in xml template file?
i tried this:
<f:image src="mypath/{mediaelement.image}" />
it doesn't work. help...
typo3 6.2.0 news 2.3.0
add following somewhere between item tag in list.xml template!
<content:encoded><f:format.cdata> <f:if condition="{newsitem.mediapreviews}"> <f:then> <f:alias map="{mediaelement: newsitem.mediapreviews.0}"> <f:if condition="{mediaelement.type} == 0"> <f:image src="uploads/tx_news/{mediaelement.image}" title="{mediaelement.title}" alt="{mediaelement.alt}" maxwidth="{settings.list.media.image.maxwidth}" maxheight="{settings.list.media.image.maxheight}" /> </f:if> <f:if condition="{mediaelement.type} == 1"> <f:render partial="detail/mediavideo" arguments="{mediaelement: mediaelement}" /> </f:if> <f:if condition="{mediaelement.type} == 2"> <f:render partial="detail/mediahtml" arguments="{mediaelement: mediaelement}" /> </f:if> </f:alias> </f:then> <f:else> <f:if condition="{settings.displaydummyifnomedia}"> <f:image src="{settings.list.media.dummyimage}" title="" alt="" maxwidth="{settings.list.media.image.maxwidth}" maxheight="{settings.list.media.image.maxheight}" /> </f:if> </f:else> </f:if> </f:format.cdata></content:encoded>
Comments
Post a Comment