Client side widget/module to show when selected

Discussion in 'Style and design' started by Paul_Concep, Jan 12, 2012.

  1. Paul_Concep

    Paul_Concep Member

    I've hacked together a widget module to display the contents of a custom template I made but when I click on the widget and the page loads (in the UI) the widget icon doesn't show the "selected" arrow.

    Does anyone know how to tell the controller to do this?

    Here's the PHP i'm using.

    Code:
        public function Index()
        {
            if (!$this->GetIsClassLoaded())
            {
                throw new SWIFT_Exception(SWIFT_CLASSNOTLOADED);
     
                return false;
            }
     
     
            $this->UserInterface->Header('utilities');
            $this->Template->Render('utilities');
            $this->UserInterface->Footer();
     
            return true;
        }
  2. cxtsupport

    cxtsupport Established Member

    Do you have any details of what you put in the widgets URL field? Also when you say module can you elaborate if you're talking about the "modules" section of are you calling an entry in the widgets section a module. Could you also provide a screen capture of how this extends your client interface. We're looking for options on how to re-add the things we bolted onto V3.
  3. cxtsupport

    cxtsupport Established Member

    I've gotten to the same place but yeah.. I can't get the Navigation item to have the little arrow under it.. Here is the code I have.

    <?php

    class Controller_clientIframe extends Controller_client
    {

    public function __construct()
    {
    parent::__construct();
    //$this->Language->Load('locale');
    return true;
    }

    public function __destruct()
    {
    parent::__destruct();
    return true;
    }

    public function XMCL()
    {
    if (!$this->GetIsClassLoaded())
    {
    throw new SWIFT_Exception(SWIFT_CLASSNOTLOADED);

    return false;
    }
    $this->UserInterface->Header('XMCL');

    echo"<iframe style=\"width:100%; Height:100%;\" src=\"https://support.cxtsoftware.com/cxt/XMCL.php\" marginwidth=\"0\" marginheight=\"0\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" scrolling=\"auto\"></iframe>";

    $this->UserInterface->End();
    $this->UserInterface->Footer();
    }


    }

    ?>
  4. cxtsupport

    cxtsupport Established Member

    I ran into the same issue and solved it this way.

    You need to make sure the title of your widget that's referencing the client page matches exactly.

    Needs to match up exactly to the title and then it should work.

    Hope this helps.

    Attached Files:

Share This Page