XF 2.0 How to change the default PAGE_CONTAINER ?

SNK

Member
Hello,

I want to create a specific page on my forum, with an another PAGE_CONTAINER. (for change the header, footer, only on my specific page)
I know it was possible with XF1, like this :
PHP:
return $this->responseView(
    'XX_ViewPublic_Index',
    'my_template',
    $viewParams,
    array('containerTemplate' =>
    'MY_PERSO_PAGE_CONTAINER',
    'param1'  => $param1,
    'param2' => $param2) // your own container template
);

Anyone know how it is possible with XF2 ? Thanks ! :)
 
Unless I am misunderstanding, you can just create a new style, set it as a style override for that page, and then edit page_container for that style.
 
Hello,

I want to create a specific page on my forum, with an another PAGE_CONTAINER. (for change the header, footer, only on my specific page)
I know it was possible with XF1, like this :
PHP:
return $this->responseView(
    'XX_ViewPublic_Index',
    'my_template',
    $viewParams,
    array('containerTemplate' =>
    'MY_PERSO_PAGE_CONTAINER',
    'param1'  => $param1,
    'param2' => $param2) // your own container template
);

Anyone know how it is possible with XF2 ? Thanks ! :)
Hello,

Did you find a solution for this ?
 
Top Bottom