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

XF 2.0 Global Template Variables

katsulynx

Well-known member
#1
Anyone has gathered any experience on where to hook into, when attempting to provide a new variable that is available to all templates? I'm working on hooking into the editor, looking for a way to get my generated configuration into the editor template.
 

Mike

XenForo developer
Staff member
#2
You can call addDefaultParam on the templater object to add somethng that would be available to all templates.

If you just need it for one template though, you may want the templater_template_pre_render event.