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

Fetching Template

Discussion in 'XenForo Development Discussions' started by onyxchase, Mar 11, 2011.

  1. onyxchase

    onyxchase Active Member


    I'm wondering, how can I fetch the data of a template for an addon/external script? Also, is there a way to list the names of the templates used in a page? I remember in vBulletin you could have debug on and it would list you all of the templates at the bottom of the page. It'd be very useful to know which one to edit, etc...

  2. James

    James Well-Known Member

    If you view the source, the class name of the div with an ID of content is your template. For example, on the forum list if you view the source you'll see:
    <div id="content" class="forum_list">
    forum_list is the template you edit.
  3. Dean

    Dean Well-Known Member

    This is more of a development questions thread, I'll move it over there.

    Dev tutorials & resources -> dev questions.

Share This Page