It's become a convention on sites where you can log in to have a top right menu with some basic links:

Let's move some items out of the big Navigation menu and create a default place for them in the top right of the screen: My account, Help and Log out (in that order).

CommentFileSizeAuthor
#11 drupal.user-links.patch2.17 KBsun

Comments

yoroy’s picture

Actually, the current Navigation block has the account name as the title. Let's put it in there as well. Bonus points for making that a link to 'my account' (and lose the explicit 'my account' one)

catch’s picture

Subscribe. I'm never user about the "Welcome, [my name linked]" - sort of like the 'my account' link, but otherwise a massive +1.

sun’s picture

yoroy’s picture

Issue tags: +Usability, +block, +accounts

I guess this technically would be creating a new core block that is enabled by default?

catch’s picture

Would either be a new menu (and hence block) or we'd need to use primary/secondary links for it.

Frando’s picture

No, let's not use primary/secondary links - this would be quite confusing UI wise IMO. Instead, I'd vote for a new block, enabled by default. Oh, and +1 on the idea.

gaele’s picture

Re #1: So that would be <Username>, Help and Log out?

That's great. It's almost like sun's admin_menu ;-)

Steve Krug calls these Utility links. They are not navigation links, so they would need a new menu.

Noyz’s picture

+1

For as long as I can recall, these are called "global navigation links"

catch’s picture

If we don't make these into a new menu, then they'll need to be hard coded into the theme (or a hook_block()) - neither of those two options fill me with joy.

I'd suggest something along these lines, there might be a cleaner way to do it which is passing me by though.

1. Add a new default menu called 'global navigation links' / 'utility links'
2. Move these links into that menu
3. Add a template for block-menu_utility or whatever it is inside menu.module to get it inline.
4. Add a region to all core themes with the right placement, and enable the block in that region by default.

beeradb’s picture

This idea is totally awesome. Although initially I was thinking these should use the secondary links, I'm thinking we should actually be getting rid of the magic associated with primary/secondary links, not adding more items (by default) to them. At this point I think catch's suggestions sound most sane, these should go in a block and be placed the same way (nearly) all other elements in Drupal are.

sun’s picture

Status: Active » Needs work
StatusFileSize
new2.17 KB

Kick-start.

pwolanin’s picture

I think the implementation should be to split out all the admin links to a separate menu, and then make the existing navigation menu be the source for the primary and secondary links. Wed' need to fix this too: http://drupal.org/node/279399

wretched sinner - saved by grace’s picture

johnalbin’s picture

First, some background: I hate the $primary_menu and $secondary_menu variables in page.tpl. They're not configurable enough and the current secondary menu's configuration is confusing. Optionally allowing "secondary menu" to mean the second level of the "main menu" means IRC headaches. And you can't move those variables around on the page without modifying the page.tpl. They should be configurable blocks that you can move around on the page. Just like the "navigation" menu block is now. I'm going to write a patch for that soon. (menu_block.module in core essentially)

So… (now that you know where I'm coming from) I like catch's suggestion in #9. Those user links could also just go into the "secondary menu". Then, at least, people would understand what we mean by "secondary menu". But I'm fine with them in a new menu or with them in "secondary menu".

sun’s picture

Yes, Menu Block will essentially replace primary links and secondary links.

However, the links affected by this issue are rather statically displayed user links on all pages and not related to primary/secondary links, and should go into a new menu.

pwolanin’s picture

Discussed with catch, noyz, JohnAlbin today - the conclusion was that we should put "Create content" and all admin links in a separate menu, and then put the remaining navigation menu into the secondary links.

sun’s picture

Then I can only guess that all of you overlooked the fact that all kind of modules add their non-administrative items to the Navigation menu. It is the default menu for all menu router items. Which means it holds more than "Create content", "Administer", and the items that have been proposed to move out of it in this issue.

Thus, altering the purpose of the Navigation menu would require substantial changes to the entire menu router item handling, which was not changed for quite some major versions of Drupal.

catch’s picture

pwolanin, sun - I thought we'd agreed to put My Account, logout etc. in secondary links and then another patch to move create content and administration from Navigation - but then leave Navigation itself as an empty dumping ground for random links for the moment.

sun’s picture

Moving them into secondary links would require to remove the special handling for primary/secondary links first. Why all this scope creep? Why can't we just do what this issue suggests (and everyone agrees with AFAICS) ?

yesct’s picture

I'm not a big name, but from a moderate admin / user point of view ..

+1 to move help logout to a new block, enabled by default, at the top in the core themes.

+1 also to the other issue/idea: moving the admin menus into their own block (enabled by default)

+1 to leaving the navigation menu the dumping ground

I don't think these two issues need to involve primary or secondary menu magic.

yoroy’s picture

Issue tags: +admin-revamp

#20 Summarizes things best imo. I too see no reason to use primary/secondary menu magic for these.

pwolanin’s picture

Status: Needs work » Closed (duplicate)
emmajane’s picture