They appear to be hard coded somewhere but can't find it. It displays right beneath the main menu.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

fubhy’s picture

Status: Active » Fixed

Deactivate the secondary menu links in your theme settings like with any other theme. They are "hard-coded" into region--menu.tpl.php in omega/templates. I say "hard-coded" because they just refer to the drupal built-in "secondary menu" functionality (drupal menu system).

espirates’s picture

I see got it. Drupal 7 doesn't appear to have secondary links anymore, is this something that will be removed in the future ?

fubhy’s picture

Drupal 7 has primary AND secondary menus still. By default your user menu is the secondary menu. Not sure what you mean?!

espirates’s picture

The only menus I see in the Drupal 7.4 are the ones listed here

Main menu
Management
Navigation
User menu

fubhy’s picture

Well.. Those are the MENUS! You can make one of them the Primary menu and one can be the Secondary menu (or they are the same). Primary / Secondary is not a menu itself, its a configuration option .. Basically telling drupal which menu should be primary and which should be secondary. You are missing a major point here!

Status: Fixed » Closed (fixed)

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

mErilainen’s picture

I believe espirates was missing the settings tab in D7, which I didn't notice first either.
Just go to /admin/structure/menu/settings, et voila!

paskainos’s picture

Version: 7.x-3.0-rc1 » 7.x-3.0
Status: Closed (fixed) » Active
FileSize
105.75 KB

I reopened this issue because it's [still] counterintuitive (ie; confusing) from a UI standpoint. As you pointed out @mErilainen, 'Main links' and 'Secondary links' are set on the Menu Settings page (/admin/structure/menu/settings). And while that guidance is helpful, as @espirates pointed out above (#4) 'Secondary menu' isn't listed in the directory of menus, which could easily confuse [Omega] users, sending them off looking for a Secondary menu 'switch' that doesn't [yet?] exist. Perhaps the best illustration of how counterintuitive & confusing this can be is the attached screenshot of the 'Respond' Omega subtheme (illustration purposes only) which shows the 'Secondary menu' displayed (lower right) and nicely styled, and the 'User menu' (the same menu used in the 'Secondary menu' as set in Menu Settings under 'Secondary links') displayed (upper left) and styled completely different.

I realize this issue goes beyond the scope of the Omega theme system, however I thought I'd reopen this issue since:

  1. This subject was already brought up here.
  2. Especially in Omega, users expect the 'Secondary menu' to function the same as all other pieces (ie; blocks) of content. If that were the case then for instance users could use Context Editor to 'drag 'n drop' the Secondary menu into a[nother] region.

I think an intuitive solution would be to render the 'Secondary menu' as a block. Again, users expect this kind of functionality in Omega, as attested to by this issue originally being posted in the Omega queue, in spite of @fubhy pointing out the issue actually lies within the drupal menu system. I know Jake posted something similar to this issue (#1070628: Restructure Menu Options/Rendering) regarding menu handling in the 2.x version, but the 'Menu settings' tab identified in his screenshot(s) seems to have vanished, and is no more... Thoughts?

Cellar Door’s picture

So the request is to change the name of the "Main Menu" and "Secondary Menu" to "Primary Links" and "Secondary Links" in order to have clarity? Or rather is it to re-instate the 7.2.x feature for menu settings where you have them either enabled/disabled?

Rendering the secondary menu as a block can happen in the blocks config already. Core just allows you to designate primary and secondary menus and gives a hook which Omega renders in it's tpl as fubhy mentioned. I don't know if it's the right place for Omega to make that block. I do agree that clarifying the links titles in the settings may help with some confusion but the creation of a new block is something I think a module would be better at doing if needed.

paskainos’s picture

I vote for the option to:

...re-instate the 7.2.x feature for menu settings where you have them either enabled/disabled...

marcoka’s picture

Assigned: Unassigned » himerus

huh? are we talking about menu names that are set by drupal core? i dont really get this problem. there a settings to disable enable the two Main and secondary menus (i always do that) and then you can use the blocks. the disabling function is available in nearly every theme.
http://screensnapr.com/v/frEBJw.jpg

himerus’s picture

Assigned: himerus » Unassigned
Status: Active » Closed (works as designed)

Okay... this is a core support request.... in Drupal 7, by default on EVERY new install, the menu settings IN DRUPAL CORE define the main-menu as the primary menu, and the user menu as the secondary menu...

The issue title and original question was: How to remove user menu links from the main menu section ?

This can be solved by going to admin/structure/menu/settings and TURNING OFF the secondary menu, or changing it to a different menu source.

DO NOT open this issue again. If there is truly some menu bug somewhere (this is NOT one) then create a new issue with an appropriate title/description.

pdeclarens’s picture

FileSize
138.66 KB

Hi,

I did desactivate primary & secondary menus un theme apparence parameters...
But the user menu still appears in User bar first ans second...(see file attached)

where am I wrong?

thanks

siefca’s picture

I have same issue, duplicated user menu and search box on top, even if corresponding blocks are disabled.

siefca’s picture

My theme is Omega-based theme. Omega version is 7.x-3.1
Attaching how it looks like.
Other themes does not have this error.

siefca’s picture

Status: Closed (works as designed) » Active

This can be solved by going to admin/structure/menu/settings and TURNING OFF the secondary menu.

That doesn't work.
Doubled user-menu still appears for logged-in users.

TanvirAhmad’s picture

Issue summary: View changes

In admin/structure/menu/settings, you can select the source for the Main links, and the Secondary links.