I'm trying to globally remove the iframes on the Homepage for Discover Sugar & Sugar News. I'm using CE and do not want my team members to see these dashlets.
I cannot figure out how to globally remove them, I've removed them in admin, but still each users see them anyway.
There is no specific configuration for the Home tab, nor can you remove it from view.
I located where they are in the nodules/home/index.php page, but I can't figure out how to remove them without getting errors.
This is the section that needs to be tweaked:
I'm not skilled at php so I'm not understanding what portion I need to comment out. I tried commenting just the $dashlets, no luck, then from the { after else to the end }, no luck.Code:else{ // This is here to get Sugar dashlets added above the rest $dashlets[create_guid()] = array('className' => 'iFrameDashlet', 'module' => 'iFrames', 'fileLocation' => $dashletsFiles['iFrameDashlet']['file'], 'options' => array('title' => translate('LBL_DASHLET_DISCOVER_SUGAR_PRO','iFrames'), 'url' => 'http://apps.sugarcrm.com/dashlet/5.2.0/go-pro.html?lang=@@LANG@@&edition=@@EDITION@@&ver=@@VER@@', 'height' => 315, )); $dashlets[create_guid()] = array('className' => 'iFrameDashlet', 'module' => 'iFrames', 'fileLocation' => $dashletsFiles['iFrameDashlet']['file'], 'options' => array('title' => translate('LBL_DASHLET_SUGAR_NEWS','iFrames'), 'url' => 'http://apps.sugarcrm.com/dashlet/5.2.0/sugarcrm-news-dashlet.html?lang=@@LANG@@&edition=@@EDITION@@&ver=@@VER@@', 'height' => 315, )); foreach($defaultDashlets as $dashletName=>$module){ // clint - fixes bug #20398 // only display dashlets that are from visibile modules and that the user has permission to list $myDashlet = new MySugar($module); $displayDashlet = $myDashlet->checkDashletDisplay(); if (isset($dashletsFiles[$dashletName]) && $displayDashlet){ $options = array(); $prefsforthisdashlet = array_keys($prefstomove,$dashletName); foreach ( $prefsforthisdashlet as $pref ) { $options[$pref] = $current_user->getPreference($pref); } $dashlets[create_guid()] = array('className' => $dashletName, 'module' => $module, 'fileLocation' => $dashletsFiles[$dashletName]['file'], 'options' => $options); } }
Any help with this would be appreciated.
Kindest Regards
Pattie


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks