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

Discussion in 'Styling and Customization Questions' started by Huskermax, Jul 19, 2016.

  1. Huskermax

    Huskermax Member

    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?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. Huskermax

    Huskermax Member

    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?
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    If you want the same calendar on 4 different forums, use the array code in point 28.
     
  5. Huskermax

    Huskermax Member

    Thanks, big help.
     

Share This Page