Technical mailing list archives


Re: Change menu id?

Elico Solutions Pte Ltd, dominique kon sun tack
- 26 أبريل, 2019 11:46:10
Possible solution: "hide" the old menu
Move the old menu in a "hidden" location, for example under the "settings>technical"
Move the new menu item at the desired location, and you should be good.


On Fri, 26 Apr 2019 at 22:56, Dominic Pain <> wrote:

I've created a new sub menu in Sales/Sales called Report Templates. This 
is (and does) link to a list of templates and from there to a wysiwig 
edit (fields.Html) to allow customers to edit templates.

I've also created a new menu called "Report Templates Management", with 
a dropdown which allows users to toggle between Templates and Notes.

When the user clicks on Sales/Sales/Report Templates, I want the menu to 
change from menu_id=97 (Sales/Sales) to menu_id=481 (Report Templates 
Management) - how would I go about this?

Current code in the gist, screenshots attached numerically demonstrate 
what I'm trying to achieve.

Thanks in advance!


Post to: