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

Is there any way to edit the acp templates?

Discussion in 'XenForo Development Discussions' started by xpl0iter, Aug 7, 2012.

  1. xpl0iter

    xpl0iter Active Member

    I am thinking of building an addon for which I will need to insert something on the ACP home page.
    Is it possible in xenforo?
    I don't see any templates related to this one.

    Can somebody point me in the right direction?
  2. ragtek

    ragtek Guest

    there are some template hooks in the acp templates available;)

    You can also use the template_post_render event to change the output.
    xpl0iter likes this.
  3. xpl0iter

    xpl0iter Active Member

    Thanks mate! :)
  4. Chris D

    Chris D XenForo Developer Staff Member

    The actual templates themselves are viewable in Admin CP > Development > Admin Templates

    As ragtek says, you will be able to find the names of the template hooks in the contents of the template, or use the template names to do template_post_render.
    xpl0iter likes this.
  5. xpl0iter

    xpl0iter Active Member

    Oh ok.
    I didn't see that! :/
    Thanks mate!
  6. ragtek

    ragtek Guest

    Another possible way=> doing everything via javascript:)

    at event template_create i've added only this
    if ($templateName == 'PAGE_CONTAINER' && $template instanceof XenForo_Template_Admin) {

    and all the other manipulating is handled via my javascript code in js/ragtek/devtools/acp.js

    ATm i prefer this method, because it's a nice way to learn javascript^^
    bousaid and xpl0iter like this.

Share This Page