[Vtigercrm-developers] questions about merge requests

Sukhdev Mohan s.mohan at myti.it
Wed Jun 23 10:13:32 GMT 2021


This is interesting! New widgets are cool, but more configurations are way more cooler.

Any thoughts on how can we customise more? I changed some core files and database to have role based dashboards… But you need to be tetchy to create, It’d be cool if widget’s could have sharing rules and roles…

Best Regards,
Sukhdev Mohan | Software Developer
On 23 Jun 2021, 12:07 +0200, Alan Lord <alanslists at gmail.com>, wrote:
> You cannot define a default widget size.
>
> The Vtiger_Widget_Model class is initially instantiated from the
> Vtiger_Dashboard_Model by calling:
>
> > Vtiger_Widget_Model::getInstanceFromValues($row);
>
> This method does not support loading of inherited classnames:
>
> https://code.vtiger.com/vtiger/vtigercrm/blob/master/modules/Vtiger/models/Widget.php#L126
>
> Once the widget data is loaded onto the Dashboard, you can then use your
> own inherited Class as the Widget Model is loaded again, from the
> MyModule/dashboards/MyModule_CustomWidget_Dashboard class.
>
> But you cannot change the initial default sizing without changing the
> core Vtiger_Widget_Model class.
>
> Try it ;-)
>
> Al
>
> PS: If you get bored take a look eCharts:
> https://echarts.apache.org/examples/en/index.html
>
>
> On 23/06/2021 10:49, Angelo Paglialonga wrote:
> > Hi Alan you can bypass such limitations (title position, whatever option
> > you need) , even add more widget types like gauges by including in your
> > custom module a new vtJqPlotInterface, copy and paste from
> > libraries/jquery/VtJqplotInterface.js
> > and add/modify for every widget type all options you need.
> >
> > I hope that helps you!
> >
> >
> > _______________
> >
> > Angelo Paglialonga
> > Consulente per soluzioni CRM ad alto ROI.
> >
> > Telefono: 3386077866
> > Skype: angelo.paglialonga
> > Web: https://www.angelopaglialonga.com <https://www.angelopaglialonga.com>
> >
> >
> >
> > > Il giorno 23 giu 2021, alle ore 11:40, Alan Lord <alanslists at gmail.com
> > > <mailto:alanslists at gmail.com>> ha scritto:
> > >
> > > On 23/06/2021 10:06, Angelo Paglialonga wrote:
> > > > Could we add new dashboards?
> > >
> > > You can add new widgets but there are some limitations:
> > >
> > > https://code.vtiger.com/vtiger/vtigercrm/issues/1026
> > > <https://code.vtiger.com/vtiger/vtigercrm/issues/1026>
> > >
> > > Al
> > >
> > > _______________________________________________
> > > http://www.vtiger.com/
> >
> >
> > _______________________________________________
> > http://www.vtiger.com/
> >
> _______________________________________________
> http://www.vtiger.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20210623/1e1a102c/attachment.html>


More information about the vtigercrm-developers mailing list