Skip to main content
InSource Solutions

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.

clipboard_e1e50fc54b62b77f8cda794205b19fc8e.png

clipboard_eadc961757d5913318621d560536d4607.png

 

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

clipboard_e1d6c987c3cfcca391005f10c87ea4688.png

AFTER

clipboard_e5e702a07f0d6a9e16809eb3f0a9e5814.png

 

  • Was this article helpful?