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

XF 1.2 How to remove all elements from a xF page

The Dark Wizard

Well-known member
#1
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.
 

The Dark Wizard

Well-known member
#3

Mike

XenForo developer
Staff member
#4
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.
 

xf_phantom

Well-known member
#5
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: