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

Which listener for XenForo_NodeHandler class ?

Discussion in 'XenForo Development Discussions' started by cclaerhout, Dec 8, 2011.

  1. cclaerhout

    cclaerhout Well-Known Member

    Sorry if the question sounds stupid, but I would like to listen "class XenForo_NodeHandler_Forum", which listener should I use ? Load_class_controller is to listen controller class, but for NodeHander... ?
     
  2. xfrocks

    xfrocks Well-Known Member

    There is no listeners for NodeHandler. Probably you should work with XenForo_Model_Forum instead? :)
     
  3. cclaerhout

    cclaerhout Well-Known Member

    Thanks for your answer !
    I'm not sure the XenForo_Model_Forum will suite my needs. I wanted to override the "public function renderNodeForTree" and play with the variable $templateLevel. But I'm going to have have a look at XenForo_Model_Forum :)
     
  4. xfrocks

    xfrocks Well-Known Member

    If it's the case, you can use template_create to change the level (but I'm not recommend that). Also, you can use template_post_render to change the rendered html. They are more than enough for most kind of customization ;) Good luck.
     

Share This Page