Skip to content

[BJB] Menu editing instructions

To create a new item in the menu, follow these steps:
1) In the admin panel, go to the following path Structure → Menus → Main navigator
Снимок экрана 2022-08-10 в 18.40.29.png
2) Next, click on the "Add link" button
Снимок экрана 2022-08-10 в 18.43.11.png
3)Here you need to specify the name of the new menu item and a link (which will take you to the desired page). In case this menu item will have child elements (for example Locations in the screenshot above, has a child element New York) the link is not necessary, you can enter "/". Note that if you want to add a description to the office, you can fill in the fields below - "street" and "city".
Снимок экрана 2022-08-10 в 18.44.58.png
4) To change the position of the menu items you can drag them on the Main navigator page using the sliders on the left. After making the changes, don't forget to save the changes with the "Save" button at the bottom of the page.
Снимок экрана 2022-08-10 в 18.53.51.png
If you want to create a dynamic menu item that depends on "Location", you need to follow these steps:
1)You need to go to Structure → Taxonomy → States and make sure that all the states that will have different menu options are present in the list. If any state is missing, add it using the "Add term" button.
Снимок экрана 2022-08-10 в 19.00.56.png
Снимок экрана 2022-08-10 в 19.01.15.png
2) Next, you need to follow the same path as when you create normal menu items Structure → Menus → Main navigator. There, in the very first level of the menu, you need to create a link that will be different for different states (an example of such a link is "Services"). When creating at the very bottom, select "enable" under "dynamic".
Снимок экрана 2022-08-10 в 19.07.52.png
3) Next, in Structure → Menus, you must create new menus using the "Add menu" button. The menu names must correspond to the states in which the menu items will differ (currently, such menus have already been created for New Jersey, New York, and Connecticut, so you can skip this option to add items to the menus of those states).
Снимок экрана 2022-08-10 в 19.13.55.png
4) Edit the created menu as you would create a normal menu item. !!! If you want to create elements that will have child elements, click on "Show as expanded".
Снимок экрана 2022-08-10 в 19.17.07.png
5) If a state in the menu does not have its own option (for example, Services will only be created in New Jersey and Connecticut will not have it), the menu will always show New Jersey links.
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.