Hello guys,
I would like to add a new subpanel to my custom module but this is the result :
I created the vardefs definition :
$dictionary["Document"]["fields"]["cde_individus_documents_1_name"] = array (
'name' => 'cde_individus_documents_1_name',
'type' => 'relate',
'source' => 'non-db',
'vname' => 'LBL_CDE_INDIVIDUS_DOCUMENTS_1_FROM_CDE_INDIVIDUS_TITLE',
'save' => true,
'id_name' => 'cde_individus_documents_1cde_individus_ida',
'link' => 'cde_individus_documents_1',
'table' => 'cde_individus',
'module' => 'CDE_INDIVIDUS',
'rname' => 'name',
);
I created the layout definition :
<?php
// created: 2019-03-05 14:18:08
$layout_defs["CDE_INDIVIDUS"]["subpanel_setup"]['cde_individus_documents_1'] = array (
'order' => 100,
'module' => 'Documents',
'subpanel_name' => 'default',
'sort_order' => 'asc',
'sort_by' => 'id',
'title_key' => 'LBL_CDE_INDIVIDUS_DOCUMENTS_FROM_DOCUMENTS_TITLE',
'get_subpanel_data' => 'cde_individus_documents_1',
'top_buttons' =>
array (
0 =>
array (
'widget_class' => 'SubPanelTopButtonQuickCreate',
),
1 =>
array (
'widget_class' => 'SubPanelTopSelectButton',
'mode' => 'MultiSelect',
),
),
);
And I added the custom LBL in the language file.
I declared all these files in the manifest.php file but I can’t see my subpanel in my module.
I hope someone can help me.
thank you in advance !