Search code examples
sugarcrmsuitecrm

SuiteCRM : How to Add Dashlet which renders external project


Anybody knows how to create dashlet that render an external app in suiteCRM/sugarCRM ?

Thanx.


Solution

  • SuiteCRM:

    What you need to do is create your module using module builder. Then edit the default dashlet see modules/your_module/Dashlets/your_module_name/your_module_name.php.

    You need to override the display() so that it returns the code that you wish to use. Typically you would return the HTML from an external file.

        function display()
        {
            $path = 'modules/your_module_name/Dashlets/your_module_name/your_module_name.html';
            parent::display();
            return file_get_contents($path);
        }