What is the best way to use an alternative PAGE_CONTAINER template under certain circumstances?
What I might do is modify the renderContainer method from ViewRenderer/HtmlPublic.php.
At the moment I am altering the template individually for each action that requires it, by altering the responseView (below), but I'm sure there is a better way.
What I might do is modify the renderContainer method from ViewRenderer/HtmlPublic.php.
At the moment I am altering the template individually for each action that requires it, by altering the responseView (below), but I'm sure there is a better way.
Code:
return $this->responseView('XenForo_ViewPublic_Error_RegistrationRequired', 'error_with_login', $viewParams, array('containerTemplate' =>
'ALT_PAGE_CONTAINER'));