-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Main navigation
Pierre Guceski edited this page Aug 9, 2019
·
5 revisions
To edit layout and text displayed on the left main navigation you need to edit the menus.en.yaml file which is located in the config/_default/menus/
directory.
To create a new entry add the following block:
- name: "<NAV_ENTRY_TEST>"
url: "<URL_TO_THE_PAGE>"
parent: "<PARENT_NAV_ITEM>"
identifier: "<UNIQUE_IDENTIFIER>"
weight: <WEIGHT>
-
name
: Text displayed for your navigation entry -
url
: Url pointed by your navigation entry -
parent
: If this navigation item is under a parent entry enter it'sidentifier
-
identifier
: A unique id used asparent
for sub-entries. -
weight
: Entries in the nav are displayed by weight within one section. The guideline here is to:-
X * 10000
for the weight of the main section in the main nav where X is the position of the section in the main nav. -
Y
: whereY
starts at 1 for sub-section within a section -
Y * 100 + Z
: WhereY
is the number of the sub-section and Z the order of the entry within this sub-section.
-