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

Adding page to add-on xml file

Discussion in 'XenForo Development Discussions' started by Randall, Nov 11, 2015.

  1. Randall

    Randall Member

    I have an add-on that uses a xenforo page. I looked at other add-on xml files and did some searching on xenforo but didn't find what I was looking for. Can I define the page in the add-on.xml file so the page gets created when the add-on is installed?
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    No, is the simple answer.

    Nodes themselves can't be associated with add-ons hence they can't be exported in the add-on XML.
     
    Randall likes this.
  3. Randall

    Randall Member

    Kind of what I figured but wanted to make sure. Thanks @Chris D
     
  4. Jake B.

    Jake B. Well-Known Member

    You can have your installer create the page for you though through DataWriters. However, since it's a page it's probably best to either create or extend an existing controller :p
     

Share This Page