Try the following:
- Install the drupal with the expert profile.
- Set Seven as your admin theme.
- Now try to find the module page without using the Management Menu
(you won't be able to find that page)

Solution:
Provide breadcrumbs: allows one to get back to a less drilled down overview. (see #548806: No breadcrumbs in Seven)
Don't use local tasks on admin overview pages (exception: different views of the same e.g. by task / by module)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alexanderpas’s picture

ofcourse, you can click Administer when you are in Garland

alexanderpas’s picture

Issue tags: +Usability
alexanderpas’s picture

Status: Active » Needs review
FileSize
2.2 KB

first patch.

alexanderpas’s picture

whoopsie ;)

alexanderpas’s picture

Gábor Hojtsy’s picture

Status: Needs review » Needs work

I think this is a direct consequence of making Modules a tab. I think that depending on how we are going to use tabs in the future, we can either just list all tabs in a menu block (just like other subitems) or designate some tabs as showing in the menu. If this item is not a tab (ie. your patch), there is no way with the toolbar to get there. Please demonstrate if you think otherwise. Breadcrumbs do not help, since they do not allow navigating further down the structure, which is the problem here.

Same issue applies to other things made tabs like the comment overview screen on admin/content/comment.

Dries’s picture

Status: Needs work » Needs review

I'd think that the expert profile will want to enable the toolbar module and Seven as well, and that the solution might be just that: enable toolbar.module as well as Seven in both install profiles?

webchick’s picture

No, I don't think so... the toolbar module is an optional module (and should remain so, in my very strong opinion, so that power users can swap it out for something like Admin Menu). So the IA still needs to work even without it. Expert profile gives us the opportunity to test with/without.

Gábor Hojtsy’s picture

admin_menu is already compatible with putting items on tabs, since it shows all tabs in the menu structure already. The menu tree generator for the menu block does not display tabs however, since they are used for actions which might make a non-collapsed menu quite busy. However, we are onto moving action tabs into an action area on the admin UI (see #542658: Move action "tabs" out of local tasks), so we might want to end up listing tabs on the menu at the end.

Dries’s picture

@webchick, I'm not suggesting that toolbar.module becomes a required module. I'm just suggesting that it is enabled by default in both profiles. I agree that power users should be able to swap it out for something like admin menu.

Just imagine all the books and documentation with Seven screenshots. I genuinely believe that enabling toolbar module and Seven will provide the best experience, even for people that start out with the expert profile. The expert profile is about not creating dummy data, it is not about crippling the user experience.

It is unclear if you read my comment wrong, or if you are suggesting that people using the expert profile will not want to use the toolbar and Seven theme? I think most people will want to. I know, I'd use the expert profile _and_ want the Seven and the toolbar module. I imagine many other developers would think alike.

There are effectively a couple of scenarios:

  1. We enable toolbar.module by default in all profiles, but allow people to swap it out by a module like admin_menu. In this case, as Gabor suggests, admin_menu does not require this patch.
  2. We have toolbar.module but also design an experience for people that don't want to use any toolbar-like module (neither admin_menu nor toolbar module). We'd need this patch to help provide an second experience for people that want no toolbar-like modules. It's going to be a pain during development -- as a contributed module author, I don't want to design and test for two experiences.
Gábor Hojtsy’s picture

Title: Unable to reach /admin/config/modules in Seven - Modules shouldn't be a local task. » Tabs on admin pages are not accessible from overviews and menus

Retitled for the more general issue. As said above, pages like admin/content/comment have the same issue. The problem here is that these tabs are not visible in overviews like /admin and menus like the Management menu. Note that currently, even the top level People, Appearance and Content items are not visible on /admin and there is a patch for that at #551080: List non-container items on /admin for a complete overview.

alexanderpas’s picture

Title: Tabs on admin pages are not accessible from overviews and menus » Unable to reach /admin/config/modules in Seven - Modules shouldn't be a local task.

@Dries
I for example, really like the Seven Theme, It's a clean, back to basics theme. but very much dislike the toolbar module (due to it's size: about 20% browser real estate on my eeePC).
In a similar way, users might have this problem, and might not be aware of admin menu.

Now, imagine a user that has just disabled toolbar.module, moved away out of the admin section, and now wants to enable admin_menu -> support requests galore!

Option 2 is not a pain, if you just design without toolbar.module and consider toolbat.module an enhancement. (Graceful Degradation and Progressive Enhancement)

alexanderpas’s picture

Title: Unable to reach /admin/config/modules in Seven - Modules shouldn't be a local task. » Tabs on admin pages are not accessible from overviews and menus

@Gábor Hojtsy
wow, i didn't even find that one, nice catch.

webchick’s picture

Dries: Sorry, I was trying to say what alexanderpas is saying: that we need to make sure that Drupal works without a toolbar module of any kind and just "raw" menu items. I think I also might've misread in your comment that your suggestion to fix the issue was to enable the toolbar module in all core profiles.

I don't think expert profile and toolbar module/Seven are mutually incompatible, but at the moment the lack of this being turned on by default in both does provide a nice, easy testing platform for this problem.

alexanderpas’s picture

Status: Needs review » Postponed

i'm postponing this one, temporarily, as #551080: List non-container items on /admin for a complete overview seems to turn out in a near duplicate, and i'm hoping to fix two issues with one patch, and no killed kittens.

Gábor Hojtsy’s picture

Status: Postponed » Needs work

Because the two issues are quite different I'd love to get them fixed one by one. This one is about tabs not listed in the items of system admin blocks, that one is about no system block being shown for standalone pages.

alexanderpas’s picture

Design Mockup:
mockup.png

Specification:
the /admin/by-task page lists the following in each category.
- the default local task of the category itself (on the top, if availble),
- the other local tasks (below the default.)
- Sub-items (like it does now, usually not together with the above two, except some exceptions (Configuration & Modules))

anyone able and willing to create a patch for this? please?

Gábor Hojtsy’s picture

Once #551080: List non-container items on /admin for a complete overview is committed, I'm happy to help. Will see how time allows.

Gábor Hojtsy’s picture

The configuration and modules item is probably tricky, since it has both subcategories and tabs, but the others only use tabs or categories only, so they should be easy to fix. Not that a contributed module would not possibly add a tab on the Structure item, but that is highly discouraged :)

alexanderpas’s picture

if we somehow manage to give the (default) local task(s) the same treatment as sub-items on that page, it should become very flexible.

alexanderpas’s picture

note this related issue: #549814: Seven theme tabs are unclear

Gábor Hojtsy’s picture

FileSize
109.84 KB
3.79 KB

Here is a first stab at a patch for this problem. The tasks are also queries and then faked to look like menu links for the rest of the processing. At least their required keys are added for later processing. If a container has both a default local task and sub menu items, then the default local task is not displayed, since the overview offers a list of all subitems already.

This is how it looks:

Note that I've also removed an extraneous "List" tab from the People admin page, since that was the only tab. The add user item was migrated to be an action, so we should have removed the orphan default tab. Also, some tabs lack a description. We can either add them here or in another patch.

Finally, the Configuration and Modules item still has multiple bugs. For some interesting reason, only the Development category shows up and the Modules tab is not listed either. At least the modules tab problem belongs in this issue, but we might as well fix the other items not appearing too. That is a bug with or without this patch though.

Gábor Hojtsy’s picture

Status: Needs work » Needs review
FileSize
37.41 KB
5.78 KB

Updated patch adds the descriptions. With all core modules enabled I've also found the book module adding a tab but not a description with it. Plus the default content top item mentioned comments, while that one is an optional core module (and comment module alters that description to include comments if enabled). So this one turns out to be also a little menu cleanup :)

Looks of the tabs appearing with the new patch:

The bug with the Configuration and modules area still not resolved. I run the query outside of Drupal and got the expected result, but for some reason, the query in this function does not return all subitems of the configuration and modules area. Very strange. I've verified that the placeholder values are the same as I run on the manual query.

SELECT m.load_functions, m.to_arg_functions, m.access_callback, m.access_arguments, m.page_callback, m.page_arguments, m.title, m.title_callback, m.title_arguments, m.type, m.description, m.path, m.weight AS router_weight, ml. * 
FROM menu_router m
LEFT JOIN menu_links ml ON m.path = ml.router_path
WHERE (ml.plid =14 AND ml.menu_name =  'management' AND hidden =0) OR (m.tab_parent =  'admin/config' AND m.type IN (136, 128))

Note that you might need to fix your plid value depending on your menu_links data. Just to repeat: this bug was here before the patch. But the same bug blocks adding the Modules tab as a sublink though.

Status: Needs review » Needs work

The last submitted patch failed testing.

alexanderpas’s picture

Status: Needs work » Needs review
FileSize
5.5 KB

as that bug was here before, (and i've seen it ;) ) i suggest that this doesn't influence this patch, and we'll create a follow-up issue.

Patch re-rolled against HEAD

Status: Needs review » Needs work

The last submitted patch failed testing.

ugerhard’s picture

Status: Needs work » Needs review

Let's try a retest.

alexanderpas’s picture

Status: Needs review » Reviewed & tested by the community

http://testing.drupal.org/pifr/file/1/admin_subitems-550718.patch
Passed: 12363 passes, 0 fails, 0 exceptions

alexanderpas’s picture

reroll against head.

Cliff’s picture

Subscribe

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks! :)

Gábor Hojtsy’s picture

The other bug with the Configuration and modules overview lacking most items seems to have been independently resolved, so looks like we are good with this commit :) Yay.

sun’s picture

Status: Fixed » Needs work

It is unclear if you read my comment wrong, or if you are suggesting that people using the expert profile will not want to use the toolbar and Seven theme? I think most people will want to.

No. Many site builders won't use Toolbar and won't use Seven theme. A separate admin theme is old-school anyway - even Typo3 moves away from that in its next release. If your custom theme is not flexible enough for proper usage on administrative pages, then you will build a sub-theme/child theme to ensure a consistent look & feel throughout your site.

+++ modules/user/user.module	9 Sep 2009 21:55:15 -0000
@@ -1305,11 +1305,6 @@ function user_menu() {
-  $items['admin/people/list'] = array(
-    'title' => 'List',
-    'type' => MENU_DEFAULT_LOCAL_TASK,
-    'weight' => -10,
-  );

This needs to be reverted, because there will be no default tab in case other modules add tabs to admin/people.

I'm on crack. Are you, too?

Gábor Hojtsy’s picture

@sun: where else are single default tabs added when there are no other tabs in core? I have not seen such practice before.

alexanderpas’s picture

Status: Needs work » Needs review
FileSize
1.27 KB

@Gábor Hojtsy
That area is intended to contain tabs, so we should provide the default, as we can't let contrib handle that.

---

followup patch attatched implementing improved suggestion from #33

Bojhan’s picture

Can someone clarify stuff for me, as I am beign pointed to this issue from all directions. This is just a way for people who like zhe old style of Drupal, to keep zhe old style of Drupal. Correct? And to fix that, I don´t use toolbar, seven, ect ect - but I want to use Drupal.

If anyone can point me to other problems its solving please do so. Its not taking over the IA we have worked on for the last months, is it?

Gábor Hojtsy’s picture

FileSize
29.29 KB
27.22 KB

@Bojhan: it is just exposing a bigger part of the IA on overview screens, so that it is easier to find pages for those who'd like to keep using the "D4/6 style" overview screens.

@alexanderpas: ok, I've tested the patch and here is how it looks before and after the patch:

Before:

After:

While I agree that this makes it technically easier to add other tabs, it does make for an inconsistent user interface. Other admin pages where tabs exist show up as a list of tabs. Here when you go to the actual page, no tab exists (Drupal does not display a single default tab), so it is not consistent with other pages.

sun’s picture

+++ modules/system/system.module	9 Sep 2009 21:55:13 -0000
@@ -1713,7 +1728,16 @@ function system_admin_menu_block($item) 
+    if ($link['type'] == MENU_DEFAULT_LOCAL_TASK) {
+      $default_task = $key;
+    }
+  }
+  if ($has_subitems) {
+    // If we've had at least one non-tab subitem, remove the link for the 
+    // default task, since that is already broken down to subitems.
+    unset($content[$default_task]);
   }

Seems like we need to count the tabs then, and also unset the default local task in case there is only one tab (the default).

I'm on crack. Are you, too?

alexanderpas’s picture

actually, it is consistent, try for example disabling as many modules as you can, and you'll notice this pattern is not only visible here.

@Bojhan
we don't take over the IA, we make stuff reachable again. The problem this solves is this: try finding the modules page with all modules disabled. (note hat you should use #516150: Add fallback for main content block rendering before disabling the block module.)

alexanderpas’s picture

Status: Needs review » Needs work

The last submitted patch failed testing.

alexanderpas’s picture

Status: Needs work » Needs review
FileSize
32.32 KB
25.09 KB

@37
here are some counter-shots:
Before:
screenshot_inconsistent.png
After:
screenshot_consistent.png

also, HEAD was broken, so resetting status.

alexanderpas’s picture

Title: Tabs on admin pages are not accessible from overviews and menus » admin/people needs to have a default tab (was: Tabs on admin pages are not accessible from overviews and menus)

Can someone review this please, it is part of the IA.

sun’s picture

Status: Needs review » Reviewed & tested by the community

That screenshot is pretty compelling. consistency++

webchick’s picture

Status: Reviewed & tested by the community » Needs work

This needs a re-roll for dashboard.

sun’s picture

Status: Needs work » Needs review
FileSize
1.16 KB
alexanderpas’s picture

Status: Needs review » Reviewed & tested by the community
Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks!

Status: Fixed » Closed (fixed)
Issue tags: -Usability, -IA, -D7UX

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