Answers.Body: <p>Pretty sure you need to GET <code>weight</code> of the "Administer" menu and then based on that you can SET the <code>weight</code> for "My Menu" - in the civicrm_navigation table. like in Drupal I think you'll be ok having two items with the same weight - no need to renumbering them all!</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-13T16:45:30.030Z
Answers.LastActivityDate: 2016-07-13T18:23:09.317Z
Answers.LastEditDate: 2016-07-13T18:23:09.317Z
Answers.UserDisplayName: KarinG - Semper IT
Body: <p>While <a href="https://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_navigationMenu" rel="nofollow">this documentation</a> tells how to add a custom top level menu, it adds to the last. Say, I want to add a new custom menu "My Menu" and position it right before "Administer" menu. How would I do this?</p>
  
Tags: <hooks><menu>
Title: How to position a custom top level menu before/after some menu?
ThreadText: # How to position a custom top level menu before/after some menu?
  
  (Asked by: username_0 on 2016-07-13)
  
  While [this documentation](https://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_navigationMenu) tells how to add a custom top level menu, it adds to the last. Say, I want to add a new custom menu "My Menu" and position it right before "Administer" menu. How would I do this?
  
  **Tags:** hooks, menu
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-07-13. Score: 1
  
  Pretty sure you need to GET `weight` of the "Administer" menu and then based on that you can SET the `weight` for "My Menu" - in the civicrm\_navigation table. like in Drupal I think you'll be ok having two items with the same weight - no need to renumbering them all!
  
  
  ---
  
  