Forum

Thread tagged as: Question, Add-on-development

Dashboard apps and widget ordering

I can use $this->register_app to set the order for a widget on the dashboard. However, it seems that Perch apps take priority so whatever I set for the order, my widget will appear after Pages and, for example, Blog and other Perch apps. Is there another way to set the order of apps on the dashboard? I seem to remember that widgets and apps could be re-ordered by drag and drop in an earlier version of Perch?

Clive Walker

Clive Walker 22 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

You can still drag and drop them. That's how we'd expect users to reorder the widgets.

I'm not seeing that at all. Where is the drag point?

I'm not able to drag-n-drop either. Clean install of runway 3.1.1 with perch_forms v1.11 and one of my dashboard widgets impeng_certdash v0.6.

I'm thinking this is in the Menu Manager... but I am not actually sure this is same for widgets

Drew McLellan

Drew McLellan 2638 points
Perch Support

Hmm, no, it's not working for me either. I'll take a look at it.

I have put a CSS in perch/addons/plugins/ui which will make the default widgets invisible, or show just as a last item.

/perch/addons/plugins/ui/_config.inc has a line

<link rel="stylesheet" href="/perch/addons/plugins/ui/RB_perch.css" type="text/css"/>

This is in /perch/addons/plugins/ui/RB_perch.css

/* Dashboard Pages: show as last */
div[data-app="content"] 
{
    order: 99; // show as last
}

/* Dashboard Forms: don't show */
div[data-app="perch_forms"] 
{
    display:none;  // don't show 
}