XenForo <xf:if is="$thread.cover_image"> / <xf:elseif is="$forum.node_id == 1" />

R

Ruh

Guest
Code:

Code:
<xf:if is="$thread.cover_image">
    <a href="{$linkUnread}" class="articlePreview-image" style="background-image: url('{$thread.cover_image}')" aria-hidden="true" tabindex="-1">&nbsp;</a>
<xf:elseif is="$forum.node_id == 1" />
.........


I want to add photos to each topic according to its id.
However, there should not be a photo by default. Only photos provided for ID should be included.


Can you please help me how to do this?

Continue reading...