article list now uses the teaser image
authorMarcel Werk <burntime@woltlab.com>
Fri, 3 Jan 2020 17:17:07 +0000 (18:17 +0100)
committerMarcel Werk <burntime@woltlab.com>
Fri, 3 Jan 2020 17:17:07 +0000 (18:17 +0100)
com.woltlab.wcf/templates/articleListItems.tpl

index 6458acd6378d5d8dc12052886ef89799405c5365..ede8431e546aa102d1cafa4aae2aa8e98703337c 100644 (file)
@@ -4,7 +4,7 @@
        {foreach from=$objects item='article' name='articles'}
                <article class="contentItem contentItemMultiColumn" role="article">
                        <a href="{$article->getLink()}" class="contentItemLink">
-                               <div class="contentItemImage contentItemImageLarge" style="background-image: url({if $article->getImage()}{$article->getImage()->getThumbnailLink('medium')}{else}{$__wcf->getStyleHandler()->getStyle()->getCoverPhotoURL()}{/if})">
+                               <div class="contentItemImage contentItemImageLarge" style="background-image: url({if $article->getTeaserImage()}{$article->getTeaserImage()->getThumbnailLink('medium')}{else}{$__wcf->getStyleHandler()->getStyle()->getCoverPhotoURL()}{/if})">
                                        {hascontent}
                                                <div class="contentItemBadges">
                                                        {content}