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

XF 1.2 Custom page as home page

Discussion in 'Styling and Customization Questions' started by BassMan, Sep 13, 2013.

  1. BassMan

    BassMan Well-Known Member


    How can I create a page to put something like this inside: <xen:include template="template_name" /> and make it as a homepage?

    Thanks in advance.
  2. Jeremy

    Jeremy Well-Known Member

    You can't use xen syntax in pages IIRC. You'll need a custom add-on and then you can set the home page route.
  3. BassMan

    BassMan Well-Known Member

    Recommend any add-on for this?
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Page nodes support xen syntax and html.
    Jeremy likes this.
  5. BassMan

    BassMan Well-Known Member

    But I've created a page and added above code (with some template) to template html, but it does not show anything.
  6. Brogan

    Brogan XenForo Moderator Staff Member

    I have many pages which include other templates.

    Why are you including a template?
    Why not just add the html code directly?

    If you are trying to run php functions then you will need to use the callback feature.
    Which template are you trying to include?
  7. BassMan

    BassMan Well-Known Member

    Well, I have this code: <xen:include template="BR_ModernStatistic" />

    I would like that this add-on shows up on my home page. But only this addon and default xenforo sidebars.
  8. Brogan

    Brogan XenForo Moderator Staff Member

    I don't know what that template or add-on does.
    You will need to contact the author but I suspect custom development will be required.
  9. BassMan

    BassMan Well-Known Member

    Ok, thank you.

Share This Page