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

XF 1.4 Make button on breadcrumbs bar show only on forum list page

Discussion in 'Styling and Customization Questions' started by sgr, Jun 12, 2015.

  1. sgr

    sgr Active Member

    I've added a button on the breadcrumbs bar (in the template: breadcrumb), and it shows up on all pages. I want it to show only on the forum list page. Do I have to use conditionals to achieve that or am I using the wrong template?
     
  2. rafass

    rafass Well-Known Member

    Use conditional:
    Code:
    <xen:if is="{$contentTemplate} == 'forum_list'">
    Your content here and it will show on forum_list only.
    </xen:if>
     
    Last edited: Jun 12, 2015
    sgr likes this.
  3. sgr

    sgr Active Member

    Thanks!
     
  4. sgr

    sgr Active Member

    @rafass,

    Do you know what would be the content template for the innermost subforum?

    For example,

    This forum consists of the Closed Suggestions as the subforum. Closed Suggestions would be where I'd want to place something and not in its parent forum - XenForo suggestions. Is there a content template/conditional for that or will that have to be done manually for a particular forum?
     
  5. rafass

    rafass Well-Known Member

    You can use
    Code:
    <xen:if is="{$forum.node_id} == x">
    This content will show in forum x
    </xen:if>
    Just replace the x with the id of your forum.
    The id is the last number in the URL:
    gif.gif

    ...........................In this case 18 and 15 ↗

    To identify the template:
    Example:
    gif2.gif
    I recommend you to take a look at this resources: Conditional Statements and the FAQ of Brogan ;)
     
    Last edited: Jun 12, 2015
    sgr likes this.
  6. sgr

    sgr Active Member

    Awesome! :)

    Yup. I did have a look at the Conditional Statements resource. I just wasn't sure how to find the template. Thanks for telling me.

    Love the gif :cool:
     

Share This Page