1. 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?

Discussion in 'XenForo Questions and Support' started by Uniphix, Aug 22, 2011.

  1. Uniphix

    Uniphix Active Member

    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?
     
  2. ragtek

    ragtek Guest

    Yes, it's possible.

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

     
    Uniphix and Kier like this.
  3. Uniphix

    Uniphix Active Member

    Gosh I knew it was something simple!! thanks!
     

Share This Page