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

Make selected forum appear on a Page

Discussion in 'XenForo Questions and Support' started by Morgain, Dec 5, 2011.

  1. Morgain

    Morgain Well-Known Member

    Would it be possible to make a selected forum appear on an XF Page?
    Just like it does on the node tree?

  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    I'm not sure I understand. If you are viewing a page node then what is the selected forum?
  3. Digital Doctor

    Digital Doctor Well-Known Member

    Which ever ones are specified.

    Example ?

  4. Morgain

    Morgain Well-Known Member

    Yes I want to display a normal forum as in my pic above but in the context of a Page.
    So there'd be text above or below it.
  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Ok. Child nodes of a page node are available as {$childNodes} in the Template HTML of your page node. But the nodes aren't rendered. An addon is required to extend XenForo_ViewPublic_Page_View to render the nodes for display as a full node list on the page. Or similarly you can specify a callback for the page node. Either way you need to author some PHP code to do this.
  6. Floris

    Floris Guest

    I tried looking into this, but all I get is a warning at the top of the page

    htmlspecialchars() expects parameter 1 to be string, array given in /home/x/public_html/internal_data/templates/S.4,L.1,_page_node.17.php, line 81
  7. Fuhrmann

    Fuhrmann Well-Known Member

Share This Page