XF 2.1 How to pass required parameters to that wrapper template

hemant_bhardwaj

Well-known member
well I wanna know the alternative way to bypass the Xenforo layout
recently we have this -
Code:
 <xf:page option="template">HomePage_template</xf:page>
but when we use this we need to use another layout for the Html tag
so is there any method to do it vie controller? so we can send the parameter in that layout.
 
Last edited:
You can set up a templater_template_pre_render event to make sure your page container template always receives the necessary parameters.
 
You can set up a templater_template_pre_render event to make sure your page container template always receives the necessary parameters.
actually that's not my question might be I was not able to explain correctly.
I need a controller alternative of this -
Code:
 <xf:page option="template">HomePage_template</xf:page>
this code allows you to make your own CONTAINER instead of Xenforo default one like Xenforo LOGIn page have its separate LOGIN_CONTROLLER
I need to do the same thing but from the controller :) instead of the Template.
 
I got your question, but the reason you named was to pass required parameters to that wrapper template, hence my reply and suggestion.
 
Back
Top Bottom