<div dir="ltr">We plan to allow users to add related tab data as summary widgets (like Activities, Updates widgets that are present now). We hope to have it in time for 6.2 release. <div class="gmail_extra">
<br><div class="gmail_quote">On Mon, Oct 20, 2014 at 5:34 PM, IT-Solutions4You <span dir="ltr"><<a href="mailto:info@its4you.sk" target="_blank">info@its4you.sk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">DETAILVIEWWIDGET like in 5.x version is planned for 6.2, or this will be never more supported ?<br>
<br>
Dňa 15. 10. 2014 11:49 Prasad wrote / napísal(a):<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Workaround:<br>
Create summarized version - add as sidebar widget. Provide option<br>
to open the advanced version of the widget in the modal / popup.<br>
<br>
Regards,<br>
Prasad<br>
<br></span><span class="">
*Connect with us on: *Twitter <<a href="http://twitter.com/vtigercrm" target="_blank">http://twitter.com/vtigercrm</a>> *I*<br>
Facebook <<a href="http://www.facebook.com/pages/vtiger/226866697333578?sk=wall" target="_blank">http://www.facebook.com/<u></u>pages/vtiger/226866697333578?<u></u>sk=wall</a>><br>
*I* Blog <<a href="https://blogs.vtiger.com/" target="_blank">https://blogs.vtiger.com/</a>>* I* Wiki<br>
<<a href="http://wiki.vtiger.com/vtiger6/index.php/Main_Page" target="_blank">http://wiki.vtiger.com/<u></u>vtiger6/index.php/Main_Page</a>> *I* Website<br>
<<a href="https://www.vtiger.com/" target="_blank">https://www.vtiger.com/</a>><br>
<br></span><span class="">
On Wed, Oct 15, 2014 at 1:49 PM, IT-Solutions4You <<a href="mailto:info@its4you.sk" target="_blank">info@its4you.sk</a><br></span><span class="">
<mailto:<a href="mailto:info@its4you.sk" target="_blank">info@its4you.sk</a>>> wrote:<br>
<br>
Yes, I know this, but I need to show more informations and this was<br>
very nice possible in 5.x version with DETAILVIEWWIDGET.<br>
<br>
Matus<br>
<br>
Dňa 14. 10. 2014 15:30 Prasad wrote / napísal(a):<br>
<br>
Please use DETAILVIEWSIDEBARWIDGET instead - refer Google Maps<br>
on Contacts.<br>
<br>
*Connect with us on: *Twitter <<a href="http://twitter.com/vtigercrm" target="_blank">http://twitter.com/vtigercrm</a>> *I*<br>
Facebook<br></span>
<<a href="http://www.facebook.com/__pages/vtiger/226866697333578?__sk=wall" target="_blank">http://www.facebook.com/__<u></u>pages/vtiger/226866697333578?_<u></u>_sk=wall</a> <<a href="http://www.facebook.com/pages/vtiger/226866697333578?sk=wall" target="_blank">http://www.facebook.com/<u></u>pages/vtiger/226866697333578?<u></u>sk=wall</a>>><span class=""><br>
*I* Blog <<a href="https://blogs.vtiger.com/" target="_blank">https://blogs.vtiger.com/</a>>* I* Wiki<br></span>
<<a href="http://wiki.vtiger.com/__vtiger6/index.php/Main_Page" target="_blank">http://wiki.vtiger.com/__<u></u>vtiger6/index.php/Main_Page</a><span class=""><br>
<<a href="http://wiki.vtiger.com/vtiger6/index.php/Main_Page" target="_blank">http://wiki.vtiger.com/<u></u>vtiger6/index.php/Main_Page</a>>> *I* Website<br>
<<a href="https://www.vtiger.com/" target="_blank">https://www.vtiger.com/</a>><br>
<br>
On Tue, Oct 14, 2014 at 6:29 PM, Sreenivas Kanumuru<br>
<<a href="mailto:svk@vtiger.com" target="_blank">svk@vtiger.com</a> <mailto:<a href="mailto:svk@vtiger.com" target="_blank">svk@vtiger.com</a>><br></span><span class="">
<mailto:<a href="mailto:svk@vtiger.com" target="_blank">svk@vtiger.com</a> <mailto:<a href="mailto:svk@vtiger.com" target="_blank">svk@vtiger.com</a>>>> wrote:<br>
<br>
Sorry, it is not currently possible to customize summary<br>
widgets in<br>
Vtiger CRM. We will review this further and update this thread.<br>
<br>
<br>
On Tue, Oct 14, 2014 at 1:40 PM, IT-Solutions4You<br>
<<a href="mailto:info@its4you.sk" target="_blank">info@its4you.sk</a> <mailto:<a href="mailto:info@its4you.sk" target="_blank">info@its4you.sk</a>><br></span><span class="">
<mailto:<a href="mailto:info@its4you.sk" target="_blank">info@its4you.sk</a> <mailto:<a href="mailto:info@its4you.sk" target="_blank">info@its4you.sk</a>>>> wrote:<br>
<br>
I'm talking about vtiger CRM.<br>
<br>
<br>
<br>
Dňa 13. 10. 2014 17:36 Pabiszczak, Błażej wrote /<br>
napísal(a):<br>
<br>
Do you see "*_/Widgets/_*" module in settings in<br>
our Yetiforce?<br></span>
<a href="https://test.yetiforce.com/____index.php?module=Widgets&____parent=Settings&view=Index&____block=2&fieldid=58" target="_blank">https://test.yetiforce.com/___<u></u>_index.php?module=Widgets&____<u></u>parent=Settings&view=Index&___<u></u>_block=2&fieldid=58</a><br>
<<a href="https://test.yetiforce.com/__index.php?module=Widgets&__parent=Settings&view=Index&__block=2&fieldid=58" target="_blank">https://test.yetiforce.com/__<u></u>index.php?module=Widgets&__<u></u>parent=Settings&view=Index&__<u></u>block=2&fieldid=58</a>><span class=""><br>
<br>
<<a href="https://test.yetiforce.com/__index.php?module=Widgets&__parent=Settings&view=Index&__block=2&fieldid=58" target="_blank">https://test.yetiforce.com/__<u></u>index.php?module=Widgets&__<u></u>parent=Settings&view=Index&__<u></u>block=2&fieldid=58</a><br>
<<a href="https://test.yetiforce.com/index.php?module=Widgets&parent=Settings&view=Index&block=2&fieldid=58" target="_blank">https://test.yetiforce.com/<u></u>index.php?module=Widgets&<u></u>parent=Settings&view=Index&<u></u>block=2&fieldid=58</a>>><br>
<br>
<br>
Z poważaniem / Regards<br>
Błażej Pabiszczak<br>
M: <a href="tel:%2B48.884999123" value="+48884999123" target="_blank">+48.884999123</a> <tel:%2B48.884999123><br>
E: <a href="mailto:b.pabiszczak@opensaas.pl" target="_blank">b.pabiszczak@opensaas.pl</a><br>
<mailto:<a href="mailto:b.pabiszczak@opensaas.pl" target="_blank">b.pabiszczak@opensaas.<u></u>pl</a>><br>
<mailto:<a href="mailto:b.pabiszczak@opensaas." target="_blank">b.pabiszczak@opensaas.</a><u></u>__pl<br>
<mailto:<a href="mailto:b.pabiszczak@opensaas.pl" target="_blank">b.pabiszczak@opensaas.<u></u>pl</a>>><br></span>
<mailto:<a href="mailto:b.pabiszczak@opensaas" target="_blank">b.pabiszczak@opensaas</a>.<br>
<mailto:<a href="mailto:b.pabiszczak@opensaas" target="_blank">b.pabiszczak@opensaas</a>.<u></u>>____pl<span class=""><br>
<mailto:<a href="mailto:b.pabiszczak@opensaas." target="_blank">b.pabiszczak@opensaas.</a><u></u>__pl<br>
<mailto:<a href="mailto:b.pabiszczak@opensaas.pl" target="_blank">b.pabiszczak@opensaas.<u></u>pl</a>>>><br>
<br>
2014-10-13 15:31 GMT+02:00 IT-Solutions4You<br>
<<a href="mailto:info@its4you.sk" target="_blank">info@its4you.sk</a> <mailto:<a href="mailto:info@its4you.sk" target="_blank">info@its4you.sk</a>><br>
<mailto:<a href="mailto:info@its4you.sk" target="_blank">info@its4you.sk</a> <mailto:<a href="mailto:info@its4you.sk" target="_blank">info@its4you.sk</a>>><br>
<mailto:<a href="mailto:info@its4you.sk" target="_blank">info@its4you.sk</a> <mailto:<a href="mailto:info@its4you.sk" target="_blank">info@its4you.sk</a>><br>
<mailto:<a href="mailto:info@its4you.sk" target="_blank">info@its4you.sk</a> <mailto:<a href="mailto:info@its4you.sk" target="_blank">info@its4you.sk</a>>>>>:<br>
<br>
And what's now? How can we (community) help<br>
vtiger to<br>
implement this:<br>
<br></span>
<a href="https://discussions.vtiger." target="_blank">https://discussions.vtiger.</a>___<u></u>___com/index.php?p=/<u></u>discussion/______171186/<u></u>detail-view-widgets-______<u></u>implementation/p1<span class=""><br>
<br>
<br>
<<a href="https://discussions.vtiger." target="_blank">https://discussions.vtiger.</a>__<u></u>__com/index.php?p=/discussion/<u></u>____171186/detail-view-<u></u>widgets-____implementation/p1<br>
<br>
<<a href="https://discussions.vtiger." target="_blank">https://discussions.vtiger.</a>__<u></u>com/index.php?p=/discussion/__<u></u>171186/detail-view-widgets-__<u></u>implementation/p1<br>
<<a href="https://discussions.vtiger.com/index.php?p=/discussion/171186/detail-view-widgets-implementation/p1" target="_blank">https://discussions.vtiger.<u></u>com/index.php?p=/discussion/<u></u>171186/detail-view-widgets-<u></u>implementation/p1</a>>>><br>
<br>
Matus.<br>
<br>
Dňa 13. 10. 2014 13:04 Alan Lord wrote /<br>
napísal(a):<br>
<br>
Ah,<br>
<br>
I think you might be right about<br>
vtiger_links &<br>
DETALVIEWWIDGETS...<br>
<br>
I've started looking at creating a module<br>
which<br>
allows the user<br>
to add a<br>
custom widget to other modules via my<br>
extension<br>
module...<br>
<br>
But looking at the code in the standard<br>
models in<br>
<br>
<br></span>
/modules/Vtiger/models/{______<u></u>Detail.php,DetailView.php} it<div><div class="h5"><br>
<br>
looks like<br>
getDetailViewLinks() and getWidgets() will<br>
only<br>
*ever* return<br>
specific<br>
widgets and will override information in the<br>
vtiger_links table<br>
such as<br>
linkurl for example.<br>
<br>
Is this really the case or am I missing<br>
something?<br>
Is there no<br>
way for<br>
me to add a new entry in the vtiger_links<br>
table<br>
such that, for<br>
example,<br>
I could add a new "Libertus" widget that gets<br>
displayed on the<br>
Contacts<br>
module Summary page or DetailView page?<br>
<br>
/**<br>
* Function to get the detail<br>
view links<br>
(links and<br>
widgets)<br>
* @param <array> $linkParams -<br>
parameters<br>
which will<br>
be used to<br>
calicaulate the params<br>
* @return <array> - array of<br>
link models<br>
in the format<br>
as below<br>
*<br>
array('linktype'=>list of link<br>
models);<br>
*/<br>
public function<br></div></div>
getDetailViewLinks($______<u></u>linkParams) {<br>
$linkTypes =<br>
array('DETAILVIEWBASIC','_____<u></u>_DETAILVIEW');<span class=""><br>
$moduleModel =<br>
$this->getModule();<br>
$recordModel =<br>
$this->getRecord();<br>
<br>
$moduleName =<br>
$moduleModel->getName();<br>
$recordId =<br>
$recordModel->getId();<br>
<br>
$detailViewLink = array();<br>
<br>
<br>
<br></span>
if(Users_Privileges_Model::___<u></u>___isPermitted($moduleName,<span class=""><br>
'EditView', $recordId)) {<br>
$detailViewLinks[] = array(<br>
'linktype' =><br>
'DETAILVIEWBASIC',<br>
'linklabel' =><br>
'LBL_EDIT',<br>
'linkurl' =><br></span>
$recordModel->getEditViewUrl()<u></u>______,<span class=""><br>
'linkicon' => ''<br>
);<br>
<br>
foreach ($detailViewLinks as<br>
$detailViewLink) {<br>
<br></span>
$linkModelList['______<u></u>DETAILVIEWBASIC'][] =<br>
<br>
<br>
Vtiger_Link_Model::______<u></u>getInstanceFromValues($______<u></u>detailViewLink);<br>
}<br>
}<br>
<br>
$linkModelListDetails =<br>
<br>
<br>
Vtiger_Link_Model::______<u></u>getAllByType($moduleModel->___<u></u>___getId(),$linkTypes,$______<u></u>linkParams);<span class=""><br>
<br>
//Mark all detail view basic<br>
links as<br>
detail view<br>
links.<br>
//Since ui will be look ugly<br>
if you<br>
need many basic<br>
links<br>
$detailViewBasiclinks =<br>
<br></span>
$linkModelListDetails['______<u></u>DETAILVIEWBASIC'];<br>
<br>
<br>
unset($linkModelListDetails['_<u></u>_____DETAILVIEWBASIC']);<br>
<br>
<br>
<br>
<br>
if(Users_Privileges_Model::___<u></u>___isPermitted($moduleName,<span class=""><br>
'Delete',<br>
$recordId)) {<br>
$deletelinkModel = array(<br>
'linktype' =><br>
'DETAILVIEW',<br>
'linklabel' =><br>
sprintf("%s<br>
%s",<br>
<br></span>
getTranslatedString('LBL______<u></u>_DELETE', $moduleName),<span class=""><br>
vtranslate('SINGLE_'.<br>
$moduleName, $moduleName)),<br>
'linkurl' =><br>
<br>
<br></span>
'javascript:Vtiger_Detail_Js._<u></u>_____deleteRecord("'.$__<u></u>recordModel-__>__getDeleteUrl(<u></u>__).'")',<span class=""><br>
<br>
'linkicon' => ''<br>
);<br>
<br>
$linkModelList['DETAILVIEW'][] =<br>
<br>
<br></span>
Vtiger_Link_Model::______<u></u>getInstanceFromValues($______<u></u>deletelinkModel);<br>
}<br>
<br>
<br>
<br>
if(Users_Privileges_Model::___<u></u>___isPermitted($moduleName,<span class=""><br>
'EditView', $recordId)) {<br>
$duplicateLinkModel = array(<br>
'linktype' =><br>
'DETAILVIEWBASIC',<br>
'linklabel' =><br>
'LBL_DUPLICATE',<br>
'linkurl' =><br>
<br></span>
$recordModel->______<u></u>getDuplicateRecordUrl(),<span class=""><br>
'linkicon' => ''<br>
);<br>
<br>
$linkModelList['DETAILVIEW'][] =<br>
<br>
<br></span>
Vtiger_Link_Model::______<u></u>getInstanceFromValues($______<u></u>duplicateLinkModel);<br>
}<br>
<br>
<br>
if(!empty($______<u></u>detailViewBasiclinks)) {<span class=""><br>
<br>
foreach($detailViewBasiclinks as<br>
$linkModel) {<br>
// Remove view<br>
history, needed<br>
in vtiger5<br>
to see<br>
history but not in vtiger6<br>
<br>
if($linkModel->linklabel ==<br>
'View History') {<br>
continue;<br>
}<br>
<br>
$linkModelList['DETAILVIEW'][]<br>
= $linkModel;<br>
}<br>
}<br>
<br>
$relatedLinks =<br></span>
$this->______<u></u>getDetailViewRelatedLinks();<span class=""><br>
<br>
foreach($relatedLinks as<br>
$relatedLinkEntry) {<br>
$relatedLink =<br>
<br>
<br></span>
Vtiger_Link_Model::______<u></u>getInstanceFromValues($______<u></u>relatedLinkEntry);<br>
<br>
$linkModelList[$relatedLink->_<u></u>_____getType()][] =<span class=""><br>
$relatedLink;<br>
}<br>
<br>
$widgets = $this->getWidgets();<br>
foreach($widgets as<br>
$widgetLinkModel) {<br>
<br></span>
$linkModelList['______<u></u>DETAILVIEWWIDGET'][] =<br>
$widgetLinkModel;<br>
}<br>
<br>
$currentUserModel =<br>
<br>
Users_Record_Model::______<u></u>getCurrentUserModel();<br>
<br>
if($currentUserModel->______<u></u>isAdminUser()) {<br>
$settingsLinks =<br>
$moduleModel->getSettingLinks(<u></u>______);<br>
foreach($settingsLinks as<br>
$settingsLink) {<br>
<br>
$linkModelList['______<u></u>DETAILVIEWSETTING'][] =<br>
<br>
<br>
Vtiger_Link_Model::______<u></u>getInstanceFromValues($______<u></u>settingsLink);<span class=""><br>
}<br>
}<br>
<br>
return $linkModelList;<br>
}<br>
<br>
<br>
<br>
<br>
/**<br>
* Function to get the detail<br>
view widgets<br>
* @return <Array> - List of<br>
widgets ,<br>
where each<br>
widget is an<br>
Vtiger_Link_Model<br>
*/<br>
public function getWidgets() {<br>
$moduleModel =<br>
$this->getModule();<br>
$widgets = array();<br>
<br>
$modCommentsModel =<br>
<br></span>
Vtiger_Module_Model::______<u></u>getInstance('ModComments');<br>
<br>
if($moduleModel->______<u></u>isCommentEnabled() &&<br>
<br>
$modCommentsModel->______<u></u>isPermitted('DetailView')) {<span class=""><br>
$widgets[] = array(<br>
'linktype' =><br>
'DETAILVIEWWIDGET',<br>
'linklabel' =><br>
'ModComments',<br>
'linkurl' =><br>
<br>
<br></span>
'module='.$this->______<u></u>getModuleName().'&view=Detail&<u></u>______record='.$this-><u></u>getRecord(__)-__>__getId().<br>
<br>
<br>
<br>
'&mode=showRecentComments&____<u></u>__page=1&limit=5'<br>
);<br>
}<br>
<br>
<br>
if($moduleModel->______<u></u>isTrackingEnabled()) {<span class=""><br>
$widgets[] = array(<br>
'linktype' =><br>
'DETAILVIEWWIDGET',<br>
'linklabel' =><br>
'LBL_UPDATES',<br>
'linkurl' =><br>
<br>
<br></span>
'module='.$this->______<u></u>getModuleName().'&view=Detail&<u></u>______record='.$this-><u></u>getRecord(__)-__>__getId().<br>
<br>
<br>
<br>
'&mode=showRecentActivities&__<u></u>____page=1&limit=5',<span class=""><br>
);<br>
}<br>
<br>
$widgetLinks = array();<br>
foreach ($widgets as<br>
$widgetDetails) {<br>
$widgetLinks[] =<br>
<br>
<br></span>
Vtiger_Link_Model::______<u></u>getInstanceFromValues($______<u></u>widgetDetails);<br>
}<br>
return $widgetLinks;<br>
}<br>
<br>
<br>
Al<br>
<br>
<br>
<br>
______________________________<u></u>_______________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
<br>
<br>
<br>
<br>
______________________________<u></u>_______________________<span class=""><br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
<br>
<br>
<br>
<br>
______________________________<u></u>_____________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
<br>
<br>
<br>
______________________________<u></u>_____________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
<br>
<br>
<br>
______________________________<u></u>___________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
<br>
<br>
<br>
<br>
______________________________<u></u>___________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
<br>
<br>
<br>
______________________________<u></u>___________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
<br>
</span></blockquote>
<br>
<br>
______________________________<u></u>_________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a></blockquote></div><br></div></div>