@mookie_jam Ok, so here’s what I did to add a Target List sub-panel to my Contact pages using 7.10.29. (I’ve also included instructions for the Account and Lead pages. Note: This Information is based on an example from the 6.5 developer guide.)
*** Please note that the file paths, filenames and contents are different for every file.
Create the next 3 files to add a Target List subpanel to Contact pages.
Create the file:
.\custom\Extension\modules\Contacts\Ext\Vardefs\prospectlists_contacts_Contacts.php
<?php
$dictionary["Contact"]["fields"]["prospect_list_contacts"] = array (
'name' => 'prospect_list_contacts',
'type' => 'link',
'relationship' => 'prospect_list_contacts',
'source' => 'non-db',
'vname' => 'LBL_PROSPECTLISTS_CONTACTS_FROM_PROSPECTLISTS_TITLE',
);
Create the file:
.\custom\Extension\modules\Contacts\Ext\Layoutdefs\prospectlists_contacts_Contacts.php
<?php
$layout_defs["Contacts"]["subpanel_setup"]['prospect_list_contacts'] = array (
'order' => 100,
'module' => 'ProspectLists',
'subpanel_name' => 'default',
'sort_order' => 'asc',
'sort_by' => 'id',
'title_key' => 'LBL_PROSPECTLISTS_CONTACTS_FROM_PROSPECTLISTS_TITLE',
'get_subpanel_data' => 'prospect_list_contacts',
'top_buttons' => array (
0 => array (
'widget_class' => 'SubPanelTopButtonQuickCreate',
),
1 => array (
'widget_class' => 'SubPanelTopSelectButton',
'mode' => 'MultiSelect',
),
),
);
Create the file:
.\custom\Extension\modules\Contacts\Ext\Language\en_us.prospectlists_contacts_Contacts.php
<?php
$mod_strings['LBL_PROSPECTLISTS_CONTACTS_FROM_PROSPECTLISTS_TITLE'] = 'Target Lists';
Make sure that the file permissions and ownership are set correctly and do a “Quick Repair and Rebuild”. You should now have a Target List subpanel in every Contact page.
Create the next 3 files to add a Target List subpanel to Account pages.
Create the file:
.\custom\Extension\modules\Accounts\Ext\Vardefs\prospectlists_accounts_Accounts.php
<?php
$dictionary["Account"]["fields"]["prospect_list_accounts"] = array (
'name' => 'prospect_list_accounts',
'type' => 'link',
'relationship' => 'prospect_list_accounts',
'source' => 'non-db',
'vname' => 'LBL_PROSPECTLISTS_ACCOUNTS_FROM_PROSPECTLISTS_TITLE',
);
Create the file:
.\custom\Extension\modules\Accounts\Ext\Layoutdefs\prospectlists_accounts_Accounts.php
<?php
$layout_defs["Accounts"]["subpanel_setup"]['prospect_list_accounts'] = array (
'order' => 100,
'module' => 'ProspectLists',
'subpanel_name' => 'default',
'sort_order' => 'asc',
'sort_by' => 'id',
'title_key' => 'LBL_PROSPECTLISTS_ACCOUNTS_FROM_PROSPECTLISTS_TITLE',
'get_subpanel_data' => 'prospect_list_accounts',
'top_buttons' => array (
0 => array (
'widget_class' => 'SubPanelTopButtonQuickCreate',
),
1 => array (
'widget_class' => 'SubPanelTopSelectButton',
'mode' => 'MultiSelect',
),
),
);
Create the file:
.\custom\Extension\modules\Accounts\Ext\Language\en_us.prospectlists_accounts_Accounts.php
<?php
$mod_strings['LBL_PROSPECTLISTS_ACCOUNTS_FROM_PROSPECTLISTS_TITLE'] = 'Target Lists';
Create the next 3 files to add a Target List sub-panel to Lead Pages:
Create the file:
.\custom\Extension\modules\Leads\Ext\Vardefs\prospectlists_leads_Leads.php
<?php
$dictionary["Lead"]["fields"]["prospect_list_leads"] = array (
'name' => 'prospect_list_leads',
'type' => 'link',
'relationship' => 'prospect_list_leads',
'source' => 'non-db',
'vname' => 'LBL_PROSPECTLISTS_LEADS_FROM_PROSPECTLISTS_TITLE',
);
Create the file:
.\custom\Extension\modules\Leads\Ext\Layoutdefs\prospectlists_leads_Leads.php
<?php
$layout_defs["Leads"]["subpanel_setup"]['prospect_list_leads'] = array (
'order' => 100,
'module' => 'ProspectLists',
'subpanel_name' => 'default',
'sort_order' => 'asc',
'sort_by' => 'id',
'title_key' => 'LBL_PROSPECTLISTS_LEADS_FROM_PROSPECTLISTS_TITLE',
'get_subpanel_data' => 'prospect_list_leads',
'top_buttons' => array (
0 => array (
'widget_class' => 'SubPanelTopButtonQuickCreate',
),
1 => array (
'widget_class' => 'SubPanelTopSelectButton',
'mode' => 'MultiSelect',
),
),
);
Create the file:
.\custom\Extension\modules\Leads\Ext\Language\en_us.prospectlist_leads_Leads.php
<?php
$mod_strings['LBL_PROSPECTLISTS_LEADS_FROM_PROSPECTLISTS_TITLE'] = 'Target Lists';
Again, make sure that the file permissions and ownership are set correctly and do a “Quick Repair and Rebuild”. You should now have a Target List subpanel in every Account and Lead page.