1. 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

Discussion in 'Styling and Customization Questions' started by bambua, May 10, 2012.

  1. bambua

    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:

    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?
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

Share This Page