I've seen this issue posted and havent been able to find a resoultion from the advice thats been given so far... Maybe someone has a different take on this issue for someone new to the sugarcrm world? Were running sugarce 5.1 on a typical lamp stack, apache2.2.3, mysql 5.0.32, php5.2.0
When creating a custom module, the module is an "invisible object" within the Configure Tabs section. Heres the source of the Configure Tabs page showing nothing between the <span></span> parameters of a custom module and the opposite from a preexisting module...
<li id='subslot5'>
<span class='slotB'><span></span></span>
</span>
</li>
<script>
tabLabelToValue['<span></span>|My_Custom_module'] = 'My_Custom_module';
if(typeof(subtabModules['subslot5']) == 'undefined')subtabModules['subslot5'] = '<span></span>|My_Custom_Module';
</script>
<li id='subslot6'>
<span class='slotB'><span>Projects</span></span>
</span>
</li>
<script>
tabLabelToValue['<span>Projects</span>|Project'] = 'Project';
if(typeof(subtabModules['subslot6']) == 'undefined')subtabModules['subslot6'] = '<span>Projects</span>|Project';
</script>
So diggin into the code I find the relevant piece in modules/Administration/ConfigureTabs.php
foreach ($tabs[0] as $key=>$value)
{
$groups[$mod_strings['LBL_DISPLAY_TABS']][$key] = array('label'=>'<span>'.$app_list_strings['moduleList'][$key] . '</span>');
}
$groups[ $mod_strings['LBL_HIDE_TABS']]= array();
foreach ($tabs[1] as $key=>$value)
{
$groups[ $mod_strings['LBL_HIDE_TABS']][$key] = array('label'=>$app_list_strings['moduleList'][$key]);
}
which has me wondering why that variable isnt being populated for custom modules? Some older forum postings reference editing include/modules.php, but then I find this in that file...
if (file_exists('custom/application/Ext/Include/modules.ext.php'))
{
include('custom/application/Ext/Include/modules.ext.php');
}
That file exists and contains what I seemingly need to edit into include/modules.php
$beanList['My_Custom_module'] = 'My_Custom_module';
$beanFiles['My_Custom_module'] = 'modules/My_Custom_module/My_Custom_module.php';
$moduleList[] = 'My_Custom_module';
Which brings me full circle. Like i said earlier I'm new to sugarcrm so Im still learning the design of the application and I could be missing something. If anyone can shed some light on what I need to do to get those tabs populated I would appreciate it. Thanks.


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks