How to set default view as custom view of module link in Main menu tab in header ?

Hello Every One,

I need some suggestion.

How i can change default view in click on menu of module from header menu bar .

Actually i create some custom view related to KPI , Now i want to show this view by default so can we replace list view to custom view in menu link .

Is it possible or not

Thanks a lot for you great suggestion

Have you had a look at this file that generates the menus?

https://github.com/salesagility/SuiteCRM/blob/master/themes/SuiteP/tpls/_headerModuleList.tpl

You can customize it by creating a copy in the Custom folder.

If your custom KPI view is a classic view (file inside modules/ or custom/modules/) this is VERY easy to do. Just copy your classic view file to custom/modules//index.php and your view will be the default for that module.

If your custom KPI view is not a classic view could create a custom view file in modules/views/view.list.php to display your view instead of the normal ListView (or maybe even both your view and the list). Or simply create a file custom/modules//index.php that display your custom view.