You can give sequence on menus through code by simply adding sequence attribute on that particular menu in xml file where usually menuitem is defined. The higher sequence number will set that menu downer accordingly. Default sequence will be set to 10 for any menu. For example,
<menuitem id="menuitem_id" name="Position/Of/The/Menu/Item/In/The/Tree" action="action_id" icon="NAME_FROM_LIST" groups="groupname" sequence="<integer>"/>
Note - Menu items with the same sequence numbers are sorted by order of creation (_order = "sequence,id").
And yeah after updating xml file, Don't forget to update that module to apply changes.
For more details, You can go through doc link
Hope this will help you.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 2/12/15, 1:11 AM|
|Seen: 1245 times|
|Last updated: 3/16/15, 8:10 AM|