Moddis
Active member
I am using the beautiful resource on conditional Statements but ran into an issue with combining one of them:
<xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 20 OR {$post.position} == 0">
TEXT
</xen:if>
Ideally that should show me the TEXT in the first post of every page of a thread. 20 is the correct number of post that i have set up per thread page so it should work. is there another variable I am missing?
Thanks!
How can I show content after post x on every page in a thread or conversation?
<xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == x">
This content will show after post x on every page
</xen:if>
<xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 20 OR {$post.position} == 0">
TEXT
</xen:if>
Ideally that should show me the TEXT in the first post of every page of a thread. 20 is the correct number of post that i have set up per thread page so it should work. is there another variable I am missing?
Thanks!
Last edited: