• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Style/Format first post in a thread differently

bambua

Well-known member
#1
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:

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?