Link to filtered view of list

I'm trying to create Module Action Links in the Meganav that link to different filtered views of the same module.

I've created some custom filters on the Accounts list view, and I've figured out how to add custom Module Actions Link buttons.

This was my most recent attempt, but the route doesn't work:

$viewdefs[$module_name]['base']['menu']['header'][] = array(
'label' =>'LNK_ACCOUNTS_SCO',
'acl_module'=>$module_name,
'icon' => 'fa-bars',
'route'=>'#Accounts?filter%5B0%5D%5Baccounttype%5D%5B%24in%5D%5B%5D=Subsidiary%20Organisation',
);

Can anyone advise the best approach here please?

Parents
  • Routing doesn't work this way. Instead you have to configure a custom layout which filter accordingly and finaly address that layout in the route.

    Regards

    André Lopes
    Lampada Global
    Skype: andre.lampada
Reply
  • Routing doesn't work this way. Instead you have to configure a custom layout which filter accordingly and finaly address that layout in the route.

    Regards

    André Lopes
    Lampada Global
    Skype: andre.lampada
Children
  • Hi there. Thanks for your help so far. I've created a custom layout and custom view which replicates the normal list view which I am able to route to. How do I configure an initial filter?