Thank you for answering
Here is my cases_layout_def.php
PHP Code:
$layout_defs['Cases']['subpanel_setup']['aleksDebugModWidget'] = array(
'order' => 150,
'module' => 'aleksDebugModWidget',
'subpanel_name' => 'default', //this is the name of the file
'get_subpanel_data' => 'aleksDebugModWidget',
'add_subpanel_data' => 'aleksDebugModWidget_id',
'title_key' => 'LBL_ALEKSDEBUGMODWIDGET_SUBPANEL_TITLE',
'top_buttons' => array(array('widget_class' => 'SubPanelTopSelectButton'),),
);
Here is cases_vardefs.php
PHP Code:
$dictionary['Case']['fields']['aleksDebugModWidget'] = array (
'name' => 'aleksDebugModWidget',
'type' => 'link',
'relationship' => 'cases_aleksDebugModWidget',
'vname' => 'LBL_ALEKSDEBUGMODWIDGET',
'source' =>'non-db',
);
$dictionary['Case']['relationships']['cases_aleksDebugModWidget'] = array (
'lhs_module'=> 'Cases',
'lhs_table'=> 'cases',
'lhs_key' => 'id',
'rhs_module'=> 'aleksDebugModWidget',
'rhs_table'=> 'aleksDebugModWidget',
'rhs_key' => 'aleksDebugModWidget_id',
'relationship_type'=>'many-to-many'
);
And here are some lines of the manifest.php:
PHP Code:
'layoutdefs'=> array(
array(
'from'=> '<basepath>/layoutdefs/cases_layout_defs.php',
'to_module'=> 'Cases',
),
),
'relationships'=>array(
array(
'module' => 'Cases',
'meta_data' => '<basepath>/relationship/cases_aleksDebugModWidgetMetaData.php',
'module_vardefs' => '<basepath>/vardefs/cases_vardefs.php',
//'module_layoutdefs'=>'<basepath>/layoutdefs/cases_layout_defs.php'
),
),
I am still having the same error:
The widget is not appearing
Besides, I am getting confised with the choice of Cases or Case in a place.
The module is "Cases"!!
Regards,
Bookmarks