Which listener for XenForo_NodeHandler class ?

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... ?
 
There is no listeners for NodeHandler. Probably you should work with XenForo_Model_Forum instead? :)
 
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 :)
 
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.
 
Top Bottom