[drupal-devel] [feature] Administration Control Panel suggestion

der drupal-devel at drupal.org
Fri Sep 16 14:30:24 UTC 2005


Issue status update for 
http://drupal.org/node/31326
Post a follow up: 
http://drupal.org/project/comments/add/31326

 Project:      Drupal
 Version:      cvs
 Component:    system.module
 Category:     feature requests
 Priority:     normal
 Assigned to:  Anonymous
 Reported by:  der
 Updated by:   der
-Status:       active
+Status:       patch (code needs review)
 Attachment:   http://drupal.org/files/issues/system_2_0.patch (4.5 KB)

updated patch.  slightly changed the formatting of the control panel
page




der



Previous comments:
------------------------------------------------------------------------

Thu, 15 Sep 2005 17:50:52 +0000 : der

Attachment: http://drupal.org/files/issues/system_9.patch (4.27 KB)

New feature suggestion:


I would like to suggest a couple of enhancments to administration
pages.


First, add a new general settings option to allow the user to specify
the admin home page.  Currently the watchdog log view is the default
home page.


Second, add a new control panel page that can be used as the default
admin start page.


I've attached a suggested patch to the CVS head version of the
system.module that implements these two enhancements.  The patch does
the following. 


Adds a new "default admin page" text field to the general settings
group (just after the "default front page").  It also changes the admin
menu entry to call a new function that examines the default "admin page"
variable and redirects to the appropriate path.  For the control panel,
the patch adds a new function (system_admin_controlpanel).  This
function basically looks for the admin entry in the menu structure and
then iterates through the child menu items and builds a control panel
page using the path and title information returned from the menu
structure. For the control panel icons it looks for an icon file in the
misc directory that matches the name of the menu item (e.g. user.png,
access.png etc)  If it doesn't find an icon it uses a default.  I've
also included some 48/48 icons that I borrowed from my
usr/share/icon/gnome directory of my local Linux box.  I believe these
are gnome GPL'ed icons but any 48/48 icons could be used.  


This patch allows users who prefer the current functionality to keep it
as their default.  It provides the option for others to make any admin
page they want to be their admin "home page" including using a
graphical control panel.  Module developers that add new admin menu
options can add their own custom icons for the control panel but they
are not "required" to do so as a default will be used if they don't
provide one.




------------------------------------------------------------------------

Thu, 15 Sep 2005 17:52:15 +0000 : der

Attachment: http://drupal.org/files/issues/drupal_controlpanel_icons.zip (39.09 KB)

48x48 icons attached







More information about the drupal-devel mailing list