XF 1.2 How to remove all elements from a xF page

The Dark Wizard

Well-known member
Using xF's built in page system we have created a page, how would one go about removing all the elements from a page, we want to remove all things generated by xF so we can insert the HTML and stuff we have done to create a nice splash page.
 
I don't know if it's possible off hand. At the least, you'd need to write custom PHP code, but there are still some templates that are involved that may not be overridable.

The style approach is probably the easiest option.
 
Create a template 'mycontainer' with your container content
Create following class:
PHP:
class Page {

  public static function getPageOutput(XenForo_ControllerPublic_Abstract $controller, XenForo_ControllerResponse_Abstract &$response){

  $response->containerParams['containerTemplate'] = 'mycontainer';
  }
}
and register it as your page callback function
 
Last edited:
Back
Top Bottom