Create a free account to get access to additional free training videos. Enjoy this free video from CraftQuest! Create a free account to get access to additional free training videos. Join the Community
Creating Navigation in Craft CMS
Another option when tackling navigation is to tie your content structure and navigation closely together using the Structure section to power the navigation.
Another option when tackling navigation is to tie your content structure and navigation closely together using the Structure section to power the navigation.
In this example, each top-level entry in the Structure would be the navigation item. And, optionally, each child item in the Structure would be a drop-down menu item (like we did with Quests earlier in this article).
To use just top-level items in the navigation, we fetch the entries with an element query and specify only the first level using the level
parameter.
Creating Navigation in Craft CMS is made up of the following videos: