1. Kayako Download customers: we will continue to develop and support Kayako Download beyond July 2017, alongside the new Kayako for existing customers.

    Find out more.

  2. The forum you are viewing relates to Kayako Classic. If you signed up or upgraded to the new Kayako (after the 4th July 2016), the information in this thread may not apply to you. You can visit the forums for the new Kayako here.

Setting a client page's header title

Discussion in 'Developing, APIs and extending' started by gbove, Aug 23, 2016.

  1. gbove

    gbove Member

    I made a super simple plugin to allow me to embed a page from a third party website into the client interface.

    I have everything setup, but I can't figure out how to set the page's title. The main reason I'm trying to set the title is, how I understand it, if I want to menu option to be "highlighted" (i.e., the class set to "current" in the CSS) the page title has to match the widget label.

    I thought it was as easy as setting it with:

    Code:
    $this->UserInterface->Header("Test Title");
    But that doesn't seem to do the trick. Here's my class Controller:

    Code:
    <?php
    
         class Controller_Coo extends Controller_client
         {
             const MENU_ID = 113;
             const NAVIGATION_ID = 1;
    
             public function __construct()
             {
                 parent::__construct();
                 $this->Language->Load('coo');
                 return true;
             }
    
             public function __destruct()
             {
                 parent::__destruct();
                 return true;
             }
    
             public function Index()
             {
                 if (!$this->GetIsClassLoaded())
                 {
                     throw new      SWIFT_Exception(SWIFT_CLASSNOTLOADED);
    
                     return false;
                }
                $this->UserInterface->Header( "Test Title");
                print '<script type="text/javascript" src="https://url.to.emeded.page"></script>';
                $this->UserInterface->Footer();
             }
        }
         ?>
    
     

Share This Page