XF 2.0 Global Template Variables

Lukas W.

Formerly katsulynx
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.


XenForo developer
Staff member
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.