I tried the simple change to the CivicSpace Theme in template.php, to treat controlpanel as civicspace_is_admin():

Drupal 4.6 diff template*

18c18
<   if ((arg(0) == 'admin') && (user_access('access administration pages')) || (arg(0) == 'control_panel') && (user_access('access control panel'))) {
---
>   if ((arg(0) == 'admin') && (user_access('access administration pages'))) {

After doing this, the menu and control panel are not placed in the correct positions (see attached image). I don't know if this is a CivicSpace Theme problem or a ControlPanel problem. Any suggestions?

I've tried this change with 4.6 and 4.7 but I am reporting on 4.6 because the CivicSpace Theme is not yet released for 4.7 (although some work has already been done see Civicspace Theme & Drupal 4.7).

CommentFileSizeAuthor
cscp46.png89.89 KBdouggreen

Comments

douggreen’s picture

Here's a hack:

diff template.php*

68,70d63
<   if ($path_class[0] == 'control_panel') {
<     $path_class[0] = 'admin';
<   }

Any better ideas?

douggreen’s picture

Version: master » 4.7.x-1.x-dev
Status: Active » Closed (won't fix)

This theme appears to be no longer supported or under development. See http://drupal.org/project/civicspace_theme.