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

XF 1.2 Creating a page

Discussion in 'Styling and Customization Questions' started by Temery, Dec 18, 2013.

  1. Temery

    Temery Active Member

    Can I create a template and use the contents as a "page?"

    If so, how?

  2. Brogan

    Brogan XenForo Moderator Staff Member

    Use the standard include syntax in the page html:
    <xen:include template="name_of_template" />
  3. Temery

    Temery Active Member

    Thanks, but I don't entirely understand. Do I create a template named, "Links", then put at the top of the template?:

    <xen:include template="Links" />

    Then using the "create new page" option in the node tree, I set the url to the url of the template?

    EDIT: I think I've got it.

    EDIT Again: Damn that was easy ;-)
    Last edited: Dec 18, 2013
  4. Brogan

    Brogan XenForo Moderator Staff Member


    Unless you have a specific reason to create a template though, just add your code directly to the page.

Share This Page