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

Fixed Custom Container Template not supported by XenForo_ViewRenderer_HtmlPublic

Shadab

Well-known member
#1
The HtmlInstall and HtmlAdmin view renderers allow the main container template to be changed using the "containerTemplate" parameter...
PHP:
$templateName = (!empty($params['containerTemplate']) ? $params['containerTemplate'] : 'PAGE_CONTAINER');
$template = $this->createTemplateObject($templateName, $params);
But the HtmlPublic view renderer doesn't check for any such parameter and renders the "page_container" template directly.
PHP:
$template = $this->createTemplateObject('PAGE_CONTAINER', $params);

Assuming this was not an intentional omission. :)