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

PAGE_CONTAINER Replace in Addons?

Uniphix

Active member
#1
Hello is there a way to replace the PAGE_CONTAINER for a certain addon page that I have? Basically I have a Primary Style that is used for the forums, then I have a Child Style so that I can override the PAGE_CONTAINER so that my new front page looks different and doesn't include all that extra information I don't need. What I would rather do is create one template knowing that template is going to be the same for both the forums and the main site, I would rather just create a new CONTAINER and override that container somehow in the addon? Does anyone know how I could do this?
 
R

ragtek

Guest
#2
Yes, it's possible.

PHP:
        return $this->responseView(
            '', // view name
            'ragtek_ticketindex',
            $viewParams,
            array('containerTemplate' =>
                'ragtek_ticketcontainer') 
        );