init
This commit is contained in:
13
custom/Extension/modules/Contacts/Ext/Layoutdefs/ecmguotes_contacts.php
Executable file
13
custom/Extension/modules/Contacts/Ext/Layoutdefs/ecmguotes_contacts.php
Executable file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
$layout_defs['Contacts']['subpanel_setup']['ecmquotes'] = array(
|
||||
'order' => 29,
|
||||
'module' => 'EcmQuotes',
|
||||
'subpanel_name' => 'default',
|
||||
'get_subpanel_data' => 'ecmquotes',
|
||||
'add_subpanel_data' => 'ecmquote_id',
|
||||
'title_key' => 'LBL_ECMQUOTES_SUBPANEL_TITLE',
|
||||
'top_buttons' => array(
|
||||
array('widget_class' => 'SubPanelTopCreateButton'),
|
||||
),
|
||||
);
|
||||
?>
|
||||
13
custom/Extension/modules/Contacts/Ext/Vardefs/ecmquotes_contacts.php
Executable file
13
custom/Extension/modules/Contacts/Ext/Vardefs/ecmquotes_contacts.php
Executable file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
$dictionary['Contact']['fields']['ecmquotes'] = array (
|
||||
'name' => 'ecmquotes',
|
||||
'type' => 'link',
|
||||
'relationship' => 'ecmquotes_contact',
|
||||
'source' =>'non-db',
|
||||
);
|
||||
$dictionary['Contact']['relationships']['ecmquotes_contact'] = array (
|
||||
'lhs_module' => 'Contacts', 'lhs_table' => 'contacts', 'lhs_key' => 'id',
|
||||
'rhs_module' => 'EcmQuotes', 'rhs_table' => 'ecmquotes', 'rhs_key' => 'contact_id',
|
||||
'relationship_type' => 'one-to-many'
|
||||
);
|
||||
?>
|
||||
Reference in New Issue
Block a user