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

Data manipulation right before render

Discussion in 'XenForo Development Discussions' started by niden.net, Mar 1, 2011.

  1. niden.net

    niden.net Member


    I am wondering if there is a Listener that I can use to manipulate all the output from the templates.

    I checked the template_post_render but it has a note:

    Called after a template is rendered. Please note that this is only called for templates that are created via the template object directly. Templates that are included via <xen:include> will not trigger this event.

    Is there anything else I can use so that all output is filtered?

  2. Mike

    Mike XenForo Developer Staff Member

    Have a look at front_controller_post_view. That said, note that this is all output - the $content that's passed may not be HTML, and there are situations where it can be an object (XenForo_FileOutput) instead of a string.
  3. niden.net

    niden.net Member

    Thank you Mike. I will check that and if I have further questions I will bug you :D :D

Share This Page