TN - 1241 j5 - Alphabetize Menu Items
Description
This article from InSource shows you how to Alphabetize Menu Items in j5
- Author: Ron Tanner
- Published: 03/25/2022
- Applies to: j5 2019
Details
To change the order on the client side you need to edit one or more module.yml files and include the information similar to the following. Be sure to check the module.yml files in the project to exclude any existing menu and rank specification for certain menu items
Screenshot below shows changing the OperationsMenu rank from 250 (j5 framework default) to 1250 in order to ensure that it displays on the left-hand side of the blue menu bar in j5.
The second screenshot shows settings for some of the other menu items.
After making the changes deploy the j5 project.
You will probably need to adjust the value of the 'rank' parameter across the menu items in the various module.yml files in order to make the result visually correct. The ordering will apply to both the Top-level menu and the menu tree.
BEFORE
AFTER