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

How to register variables custom template with specific conditions

#1
Please I need help creating custom template and register it's variables according to special conditions, e.g in threads I want to get thread owner custom fields and use it in that template and at the same time add this template to page_container_breadcrumb_top hook.

And in every page on the forum I want to get default values and register them to that custom template.

This was very easy to do with vBulletin as there was hooks that allow me to add my code and register custom templates every where.

Any example please for that?
 

Jake Bunce

XenForo moderator
Staff member
#2
The xen:include syntax that allows you to inline templates also allows you to set variables to pass to the included template. This template is a good example:

Admin CP -> Appearance -> Templates -> post

The entire post template is one big xen:include of the message template.
 
#3
The xen:include syntax that allows you to inline templates also allows you to set variables to pass to the included template. This template is a good example:

Admin CP -> Appearance -> Templates -> post

The entire post template is one big xen:include of the message template.
Thank you, I will look for that template and it's related variables to understand.