bambua
Well-known member
I'd like to in the thread_view template in the loop that goes through the posts in a thread detect somehow that I'm on the first post:
Anyone have an idea within the templates how I could accomplish that?
Code:
<xen:foreach loop="$posts" value="$post">
<xen:if is="{$post.message_state} == 'deleted'">
<xen:include template="post_deleted_placeholder" />
<xen:else />
// PUT SOME LOGIC HERE TO DECIDE WHAT TEMPLATE TO INCLUDE
<xen:include template="post" />
</xen:if>
</xen:foreach>
Anyone have an idea within the templates how I could accomplish that?