Hi,
I have been searching for ages for this and tried everything I could fine online but nothing seems to work.
I have custom modules setup as subpanels within Accounts. So under Accounts I can see the subpanels. All I want to do is for each subpanel I have listed is to set a default sort option by a specific field. I have tried the below code:
"\custom\modules\Accounts\metadata\subpaneldefs.php"
$layout_defs['Accounts']['subpanel_setup']['accounts_sits_technical_passwords_1']['sort_order'] = 'ASC';
$layout_defs['Accounts']['subpanel_setup']['accounts_sits_technical_passwords_1']['sort_by'] = 'purpose_c';
I have tried putting this in various places including extensions but nothing seems to work. It seems to keep the last desired search option the user has selected.
Anyone please help it is driving me mad. :)
PS: I am running CE 6.5.20
Thanks All