tx_news verschiedene Bildgrössen
Bildgrösse anpassen in der ListView und der DetailView
Setup
plugin.tx_news.settings.list.media.image.width = 1600c
plugin.tx_news.settings.list.media.image.height = 900c
plugin.tx_news.settings.detail.media.image.width = 1290c
plugin.tx_news.settings.detail.media.image.height = 800c
ListView
<f:alias map="{mediaElement: newsItem.mediaPreviews.0}">
<f:if condition="{mediaElement.originalResource.type} == 2">
<f:image image="{mediaElement}" title="{mediaElement.originalResource.title}" alt="{mediaElement.originalResource.alternative}" width="{f:if(condition: settings.media.width, then: settings.media.width, else: settings.list.media.image.width)}" height="{f:if(condition: settings.media.height, then: settings.media.height, else: settings.list.media.image.height)}"/>
</f:if>
</f:alias>