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

Get Template Name in template_hook?

Discussion in 'XenForo Development Discussions' started by Jaxel, Nov 15, 2011.

  1. Jaxel

    Jaxel Well-Known Member

    I have a template hook... Is there a possible way to get the name of template that is calling the hook? Basically, its because there are certain hooks which appear in multiple templates; I would like this hook to register in all templates except a specific one, and I dont want to edit the template because I actually want the hook there, I just dont want to add a specific thing to it.
  2. Jeremy P

    Jeremy P Well-Known Member

    Digging in XenForo_Template_Abstract, could you not call $template->getTemplateName(); ?

Share This Page