create a file in custom/Extension/modules/MODULE/Ext/Layoutdefs/SOMETHING.php
in that php define a new subpanel as:
PHP Code:
<?php
// @author Milos Miric aka eitrix
$layout_defs["Accounts"]["subpanel_setup"]["accounts_prestations"] = array (
// check here is accounts still name of module
'order' => 100,
'module' => 'Prestations', // check is this correct prestations module name
'subpanel_name' => 'default',
'sort_order' => 'asc',
'sort_by' => 'id',
'title_key' => 'LBL_ADD_LABEL_HERE',
'get_subpanel_data' => 'ppre_prestations_accounts', //check if i typed correct
'top_buttons' =>
array (
0 =>
array (
'widget_class' => 'SubPanelTopCreateButton',
),
1 =>
array (
'widget_class' => 'SubPanelTopSelectButton',
'mode' => 'MultiSelect',
),
),
);
?>
Make sure you have a default subpanel in modules/prestations/subpaneldefs
make sure i named all stuff correct, you should have a picture what to do. Also repair is needed after this to rebuild extensions
Bookmarks