Dashboard Panels Ordering

To change the ordering of dashboard panels, add a datasource with name dashboard.js via CMS

Code example for dashboard.js

if(eb_IsAdminSiteAdmin){
/*
for admins, there are three sections. top horizontal and two verticals
*/
  g_overrideDashboardPanelsSequence([], ["networkUpdates", "paymentWidget", "eventsWidget", "homePollWidget", 
  "completedItemsWidget"], ["leftColTabs","introPanel", "siteAnalytics", "calWidget", "grpWidget"]);
}else{
/*
for nont admins, there are two vertical sections. 
*/
  g_overrideDashboardPanelsSequence(["calWidget", "networkUpdates", "paymentWidget", "eventsWidget", "homePollWidget",
  "completedItemsWidget"], ["leftColTabs","introPanel", "siteAnalytics", "grpWidget"]);
}

Rating: