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

XF 1.5 Is forum_view the same template for each board (subject)

#1
So I have a sports related forum, I have a different board for football, volleyball, basketball so on and so fourth.

In forum_view template runs the look and feel for each one of those boards or is their a different template for each one? Like in the URL football is (.4)

http://forum.huskermax.com/index.php?forums/football.4/

baseball is: (.7)

http://forum.huskermax.com/index.php?forums/baseball.7/

I would like to add some code to each forum (which I have) so I can put a sports calendar in the right sidebar margin. Or do I need to put in some kind of conditional to only show that code on football.4 and baseball.7 so on an so fourth?
 
#3
Yes, the template is the same, but the forum ID is included in the markup, allowing you to apply individual styling to each forum.

As far as conditional statements go, see point 27 here: https://xenforo.com/community/resources/conditional-statements.1604/
So I just ad the calendar code to the forum_view then wrap it in this conditional with the correct forum id?

<xen:if is="{$forum.node_id} == x">
This content will show in forum x
</xen:if>


I would need to have the calendar code reproduced for each forum correct? So if I have 4 boards I need it listed in Forum_view 4 times with the correct conditional?