Here is a patch that separates the admin pages for the various dashboards.

I think this is RTBC, but would like some feedback. The concept is that the second-level menu items (like /admin/settings/dashboard/default/block) will be used to limit the available widgets, whereas the main screen is a global on/off for widget types.

Note also the concepts of restricting the amount of content on a Dashboard -- this is crucial for performance.

Comments

agentrickard’s picture

StatusFileSize
new6.07 KB

Revised patch catches an error and splits hook_dashboard_widget() into an _info() hook and a data hook.

agentrickard’s picture

Status: Active » Needs review
christefano’s picture

StatusFileSize
new5.97 KB

This is the same as above but makes makes the case of "Dashboard" consistent. It's a minor change but it beats saying "subscribe."

christefano’s picture

StatusFileSize
new6.07 KB

Sorry, use this one. #3 was accidentally based on the original patch instead of #2.

agentrickard’s picture

StatusFileSize
new17.31 KB

OK, I am ready to commit this patch, which includes a much larger change that separates Dashboard definitions and Widget definitions into separate include files and directories, Views and CCK style.

This will break things for a bit, but I think we need to bull forward.

Dashboard definitions now live in module_dir/dashboards/name.inc and Widgets live in module_dir/widgets/name.inc.

Tested the new logic by moving the drupalnews widget into drupalnews/widgets/news.inc and changing drupalnews_dashboard_widget() to drupalnews_dashboard_widget_info().

Note also that individual admin settings pages for widgets are now optional, if you set $widget['settings'] => FALSE in your _info hook.

Having trouble with a patch file, so attaching the whole folder.

ceardach’s picture

Issue tags: +drupal.org redesign

tagging related issues

drumm’s picture

Priority: Normal » Critical

I've been doing some housekeeping on this module. This looks like it will be the next thing to review sometime tomorrow. An updated patch would be great.

drumm’s picture

Status: Needs review » Needs work

It looks like a lot of this, like the widget includes, is duplicating what we want ctools content types to do.

lisarex’s picture

Linking this from the Redesign project #661532: Meta issue for Dashboard because this issue was tagged 'drupal.org redesign'

Anonymous’s picture

Status: Needs work » Closed (fixed)

This no longer applies to the new version. There are new admin interfaces.