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

How to get the forum name

Discussion in 'XenForo Development Discussions' started by sifuhall, Dec 27, 2011.

  1. sifuhall

    sifuhall Active Member

    I'm trying to add the forum category name to a template (specifically the recent news template for the xenporta add on).

    I've tried several permutations of this code:

    {xen:helper snippet, $forum.title, 50}

    But no luck.

    How can I get the forum title for a thread?
     
    Reeve of Shinra likes this.
  2. Fuhrmann

    Fuhrmann Well-Known Member

    Have you tried:

    Code:
    $news.title
    ?
     
  3. sifuhall

    sifuhall Active Member

    Yep, that returns the thread title, but I'm looking for the title of the forum the thread is in.

    Looks like my original post was not clear on this.

    I have updated it.
     
  4. Fuhrmann

    Fuhrmann Well-Known Member

    You can edit the template of the recent news and put this:

    Code:
    {xen:helper dump, $news}
    Then you will see if the forum title is inside the var $news and is available to use.

    Edit: I think I found.

    Try this:

    Code:
    {$news.node_title}
     
    demonkey likes this.
  5. sifuhall

    sifuhall Active Member

    That was it!

    Thank you!
     

Share This Page