SuiteCRM:如何添加渲染外部项目的Dashlet(SuiteCRM : How to Add Dashlet which renders external project)

有人知道如何创建在suiteCRM / sugarCRM中呈现外部应用程序的dashlet吗?

感谢名单。

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

Thanx.

最满意答案

SuiteCRM:

您需要做的是使用module builder创建module builder 。 然后编辑默认的dashlet,参见modules/your_module/Dashlets/your_module_name/your_module_name.php.

您需要覆盖display()以便它返回您希望使用的代码。 通常,您将从外部文件返回html。

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

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); }

更多推荐