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

Possible to get node title by id?

Discussion in 'XenForo Development Discussions' started by CyberAP, Jul 28, 2015.

  1. CyberAP

    CyberAP Well-Known Member

    I am wondering is it possible to retrieve node title by referencing its id inside templates?
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Which template is it?

    Is there a $param you can dump to see what's available?

    {xen:helper dump, $param}
  3. CyberAP

    CyberAP Well-Known Member

    It's inside my custom template that I include in PAGE_CONTAINER.
    We have a $forum variable, but I don't know how to set it to a specific ID so we can get it's title.
  4. katsulynx

    katsulynx Well-Known Member

    Could you share an example of the content of that variable with us? Have you assigned it yourself? If so, where and how did you?
  5. CyberAP

    CyberAP Well-Known Member

    No, it's a default $forum variable, I would like to pass an ID and get a {$forum.title} contents.

Share This Page