First, this is an awesome theme. Really great work. Thank you.

Now, here is the problem I am encountering. I had enabled the top navigation section with icons for the role called "webmaster" on my website. I did this by:

  1. Going in to the theme settings for RootCandy.
  2. expanding the "navigation" section
  3. making sure "disable icons for navigation" was not checked
  4. setting the icon size to 32
  5. setting the dropdown by "webmaster" to "default navigation"
  6. saving the changes

The navigation icons were appearing at the top of the page just fine.

Latter, I renamed the "webmaster" role to "superadmin". The icons still appeared just fine for user #1. However, for any other user in the "superadmin" role, the icons no longer appeared. I double-checked the theme settings, and it was picking up the role name change. The dropdown by the "superadmin" role was set to "default navigation".

My site does have the option to use the admin theme enabled, because RootCandy is appearing for administrative tasks, its just the icons along the top of the page are not for users of the role "superadmin" that are not user #1. I have also tried clearing the Drupal cache, and my web browser's cache and cookies. I have even tried setting the "superadmin" role to use the primary links menu in the navigation section of the theme settings. It doesn't show anything, and I know I have primary links set. Same happens if I set it to "navigation".

My best guess is that RootCandy is not picking up on the role name change. Any idea how to get the icons at the top of the screen back?

Thanks.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Danny_Joris’s picture

I have the same issue, but even without the role name changing. I have no problems with User-1, but I don't see the top navigation when I login with a user with another (editor) role.

I tried it with a role called 'site-administrator' which has all the permissions enabled that are available and the icons still didn't show up.

sign’s picture

Swamped with work at the moment :(
Will try to have a look later today but can't guarantee,

if anyone else can check I will be very grateful

Scientifik’s picture

I've been getting this as well. Also it seems like other things disappear like when you select "Menus" it just lists the menus but the bar to add/edit etc is gone.

rimu’s picture

Yeah me too. My User-1 user can see the buttons across the top, but other users with access to parts of the admin area cannot see any buttons.

This is in both the latest official release and the dev release

sign’s picture

was anyone of you upgrading?

sign’s picture

Assigned: Unassigned » sign
Category: support » bug

ok I can replicate that... :s
still investigating

sign’s picture

Status: Active » Needs review
FileSize
5.1 KB

ok, so I have found the problem, attached is the patch if anyone wants to try against theirs v1.2 (which would be great if you can test it and report back)
and committed to dev version

thanks for reporting and please review and test thank you

Danny_Joris’s picture

I tried the dev version and no changes. Maybe I updated wrong. I just threw the old rootcandy out and put the new one in. But I guess that's the way to do it with themes, isn't it.

sign’s picture

@Danny_Joris if you visit theme settings, and expand the Menu by role, can you see all your user roles including authenticated user + anonymous user?

Danny_Joris’s picture

Oh, is that new? Yes I see it and it works! Thanks very much!

Maybe an idea: Is it possible to give the Top Navigation menu different classes? For example if one of the menu items is empty because the user doesn't have permissions related to this, then maybe we could tuck that item away with css. Or only the basic ones, because I guess the items are generated and it might be difficult to give them custom classes.

Anyway, looks great already.
Thanks again.
Danny

sign’s picture

Version: 6.x-1.2 » 6.x-1.x-dev

Just committed one line to dev version which adds class to top menu list so it can look like:

<ul class="i24">
  <li class="admin"><a></a></li>
  <li class="admin-build"><a></a></li>
  <li class="admin-content"><a></a></li>
  <li class="admin-content-node"><a></a></li>
  <li class="node-add"><a></a></li>
</ul>

btw, not sure why would you want to hide one menu item, can you explain please? if the user doesnt have access to it, it won't show up.

sign’s picture

Just re-read your post, when they dont have access to it, does it show an empty <li></li>?

Danny_Joris’s picture

FileSize
62.49 KB

Hey Sign,

I have this test user that does not have any permissions for User-Management. The reason why classes would come in handy is to remove that button that is still there. (see attachment)

btw: if you add something to the dev, can I already download that version or do I have to wait a few hours?

Thanks!

sign’s picture

ah I see, well, probably it will be best to create your own custom menu for that user role?
it is simple, create a new menu, add menu items you would like to have there for that user, it can be any path in drupal, and then in theme settings, assign that menu to the user role of that user, thats how I would do it actually :)

re dev: you have to wait few hours or you can check it out from cvs, there are cvs instructions on rootcandy project page ( or follow this link: http://drupal.org/node/210180/cvs-instructions/DRUPAL-6--1 )

let me know if custom menu per user role will solve what you want to achieve

sign’s picture

Status: Needs review » Fixed

marking this as fixed, reviewed and tested on clean install, even on upgrade
should be ok now

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

ExTexan’s picture

Title: top navigation section disappears after role name change » top navigation section doesn't appear
Version: 6.x-1.x-dev » 6.x-1.3

I have an additional admin user set up (with all appropriate permissions), but I don't see the top nav section in RootCandy Dark (5.x-1.3). As far as I can tell, my code has all the + stuff in the patch referenced in this thread, but it's not showing for me.

In the theme settings page, when I expand Menu by role, it shows my "administrator" role - which I have set to use "default navigation".

Anything else I need to do/check?

divbox’s picture

FileSize
42.39 KB

I had the same problem w/ icons not showing up. I had a 3 extra roles besides authenticated and anonymous. Thought that this was the problem, so I removed user from all by one, and still no icons.

I then set the additional "admin" role I created to # 1 in the order in the "Menu by role and weights" section, so that my admin role was # 1, above anonymous and authenticated. Once I did this the icons showed up. I've attached a screen shot showing my settings.

I am using the newest release (not -dev).

Thanks for a great admin theme btw. It's awesome. Great work!!

fossie’s picture

I can confirm that you have to put the role in the section above the authenticated role, otherwise their are no icons shown.

HTH,
Fossie

drupalprojects’s picture

Agree with #19 commenter, placing role above authenticated role was the solution.