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

Forum Index Conditional?

Discussion in 'XenForo Questions and Support' started by IFeelYourPain13, Dec 29, 2011.

  1. IFeelYourPain13

    IFeelYourPain13 Active Member

    Is there a conditional to only display information on the forum index?
  2. Brogan

    Brogan XenForo Moderator Staff Member

    How can I show content on a specific page?
    <xen:if is="{$contentTemplate} == 'xyz'">
    This content will show on the xyz template

    How can I find out which template to edit?
    Using your browser, view the page source and look for a line of code near the top of the page which begins
    <div id="content" class="; the class is the name of the template. So for the main forum page, the line of code is:
    <div id="content" class="forum_list">, which makes the template forum_list.
  3. IFeelYourPain13

    IFeelYourPain13 Active Member

    Thanks! Got that to work. Know anything about the profile fields?
    <xen:if is="{$user.customFields.tweetboard} == 'yes'">

    I have it set to no, but it still displays o_O

    NVM figured it out:
    <xen:if is="{$visitor.customFields.tweetboard} == 'yes'">

Share This Page