Is there quick solution to remove HOME tab ? My customer want´s it gone.
Admin, Configure Tabs I try to Hide HOME tab, but it keeps displaying ?
So what file to edit ?
Thanks
Is there quick solution to remove HOME tab ? My customer want´s it gone.
Admin, Configure Tabs I try to Hide HOME tab, but it keeps displaying ?
So what file to edit ?
Thanks
Hi
Go to themes\”your theme” \header.php
And customize the header.php file.
Thanks for quick reply shailendra001!
I did the following, but I still got Home tab ?
Tpl
This definitely do not work and also this is not upgrade safe.
Create a php script inside custom/Extension/application/Ext/Include/ containing something like that:
Go to Admin -> Repair -> Rebuild ExtensionsPHP Code:<?php
foreach($moduleList as $id => $module) {
if($module == 'Home') {
unset($moduleList[$id]);
}
}
$modInvisList[] = 'Home';
?>
Make sure the file custom/application/Ext/Include/modules.ext.php had been updated with these lines.
Cheers
André Lopes
DevToolKit / Project of the Month - June 2009
Lampada Global Services- Open Source Solutions
Avenida Ipiranga, 318
Bloco B - CJ 1602
São Paulo, SP 01046-010
Brazil
Office: +55 11 3237-3110
Mobile: +55 11 7636-5859
e-mail: andre@lampadaglobal.com
Lampada Global delivers offshore software development and support services to customers around the world.
Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.
I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.
Hi andopes!
Thanks for positive response , this will greatly help me to improve .
I am trying to write a module for that i have simply chosen these directory for my module 'Travel'
modules/travels
modules/travels/index.php
modules/travel/language/en_us.lang.php
modules/travels/Forms.php
I have added module name in
include/module.php
$moduleList[] ='travels';
is my way of writing is correct ,is this upgrade safe
please guide
Regards
Shailendra
It is not upgrade safe and it will not work as you had defined.
include/modules.php is a core file and SHOULD NOT BE EDITED unless you have a really good reason for that.
custom/Extension/application/Ext/Include/some_script.php is the correct place to extends include/modules.php
It seems you do not want to get the Travel module visible on module tab, so you need to update the manifest.php to set the tab => false for the module.
Cheers
André Lopes
DevToolKit / Project of the Month - June 2009
Lampada Global Services- Open Source Solutions
Avenida Ipiranga, 318
Bloco B - CJ 1602
São Paulo, SP 01046-010
Brazil
Office: +55 11 3237-3110
Mobile: +55 11 7636-5859
e-mail: andre@lampadaglobal.com
Lampada Global delivers offshore software development and support services to customers around the world.
Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.
I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.
Hi
Sample:
Go to themes/sugar/header.php search the following code
And replace the this codeCode:foreach($preListHeader as $module_name) { if (!is_array($module_name)) { $xtpl->assign("MODULE_NAME", $app_list_strings['moduleList'][$module_name]); $xtpl->assign("MODULE_KEY", $module_name); if($module_name == $currentModule && ($module_name != 'iFrames' || empty($_REQUEST['record'])|| (!empty($_REQUEST['tab']) && $_REQUEST['tab']=='false'))) { $tabClass = "currentTab"; $otherTab = "currentTab"; $xtpl->assign("TAB_CLASS", "currentTab"); $xtpl->assign("OTHER_TAB", "currentTab"); } else { $tabClass = "otherTab"; $otherTab = "currentTab"; $xtpl->assign("TAB_CLASS", "otherTab"); $xtpl->assign("OTHER_TAB", "currentTab"); } $xtpl->assign("LINK", '<a class="'.$tabClass.'Link" href="index.php?module='.$module_name.'&action=index">'.$app_list_strings['moduleList'][$module_name].'</A>'); } else { $xtpl->assign("MODULE_NAME", $module_name[4]); $xtpl->assign("MODULE_KEY", $module_name[3]); if($module_name[3] == $currentModule && (!empty($_REQUEST['record']) and $_REQUEST['record']==$module_name[0] and !empty($_REQUEST['tab']))) { $tabClass = "currentTab"; $otherTab = "currentTab"; $xtpl->assign("TAB_CLASS", "currentTab"); $xtpl->assign("OTHER_TAB", "currentTab"); } else { $tabClass = "otherTab"; $otherTab = "currentTab"; $xtpl->assign("TAB_CLASS", "otherTab"); $xtpl->assign("OTHER_TAB", "currentTab"); } $xtpl->assign("LINK", '<a class="'.$tabClass.'Link" href="index.php?module='.$module_name[3].'&action=index&record='.$module_name[0].'&tab='.$module_name[2].'">'.$module_name[4].'</A>'); } if ($i==$max_tabs-1 and $numb_tabs>$max_tabs) { //$xtpl->assign("MORE", "<img src='".$image_path."more.gif' alt='' align='absmiddle' id='MoreHandle' style=' margin-left:2px; cursor: pointer; cursor: hand;' align='absmiddle' onmouseover='tbButtonMouseOver(this.id,\"\",\"\",0);'>"); $xtpl->assign("MORE_HANDLE_CLASS", 'otherTab'); $xtpl->parse("main.moreHandle"); } $xtpl->parse("main.module_tab"); $i++; }
Code:foreach($preListHeader as $module_name) { if($module_name != "Home") { if (!is_array($module_name)) { $xtpl->assign("MODULE_NAME", $app_list_strings['moduleList'][$module_name]); $xtpl->assign("MODULE_KEY", $module_name); if($module_name == $currentModule && ($module_name != 'iFrames' || empty($_REQUEST['record'])|| (!empty($_REQUEST['tab']) && $_REQUEST['tab']=='false'))) { $tabClass = "currentTab"; $otherTab = "currentTab"; $xtpl->assign("TAB_CLASS", "currentTab"); $xtpl->assign("OTHER_TAB", "currentTab"); } else { $tabClass = "otherTab"; $otherTab = "currentTab"; $xtpl->assign("TAB_CLASS", "otherTab"); $xtpl->assign("OTHER_TAB", "currentTab"); } $xtpl->assign("LINK", '<a class="'.$tabClass.'Link" href="index.php?module='.$module_name.'&action=index">'.$app_list_strings['moduleList'][$module_name].'</A>'); } else { $xtpl->assign("MODULE_NAME", $module_name[4]); $xtpl->assign("MODULE_KEY", $module_name[3]); if($module_name[3] == $currentModule && (!empty($_REQUEST['record']) and $_REQUEST['record']==$module_name[0] and !empty($_REQUEST['tab']))) { $tabClass = "currentTab"; $otherTab = "currentTab"; $xtpl->assign("TAB_CLASS", "currentTab"); $xtpl->assign("OTHER_TAB", "currentTab"); } else { $tabClass = "otherTab"; $otherTab = "currentTab"; $xtpl->assign("TAB_CLASS", "otherTab"); $xtpl->assign("OTHER_TAB", "currentTab"); } $xtpl->assign("LINK", '<a class="'.$tabClass.'Link" href="index.php?module='.$module_name[3].'&action=index&record='.$module_name[0].'&tab='.$module_name[2].'">'.$module_name[4].'</A>'); } if ($i==$max_tabs-1 and $numb_tabs>$max_tabs) { //$xtpl->assign("MORE", "<img src='".$image_path."more.gif' alt='' align='absmiddle' id='MoreHandle' style=' margin-left:2px; cursor: pointer; cursor: hand;' align='absmiddle' onmouseover='tbButtonMouseOver(this.id,\"\",\"\",0);'>"); $xtpl->assign("MORE_HANDLE_CLASS", 'otherTab'); $xtpl->parse("main.moreHandle"); } $xtpl->parse("main.module_tab"); } $i++; }
this is for all themes
Thanks crmbalah!
It worked great
tpl
hmm, okay now tab is gone, but when login, it´direct you to HOME screen ?
When login it should go direct to accounts.
How to do that ?
tpl
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks