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
There isn't an official way to manage navigation in Craft CMS. Unlike other CMSes that offer built-in navigation management, Craft CMS leaves it up to the developer to decide the best implementation for the website.
There isn’t an official way to manage navigation in Craft CMS. Unlike other CMSes that offer built-in navigation management, Craft CMS leaves it up to the developer to decide the best implementation for the website.
Craft CMS is design-agnostic and doesn’t impose any layout or design structure on a project. Craft focuses entirely on the content and not on the presentation. Because Craft doesn’t formally support one way to do navigation, there is a lot of flexibility in what you can do.
Recently on the Craft CMS Discord server, there was a discussion of how to do navigation and the input from different people significantly varied. You had those that mostly always implement the navigation manually via hard-coded nav items right in the Twig template. But, there were also those that did it half-hard-coded navigation, adding in some dynamic items when necessary. And then there were others who chimed in that all navigation should be fully dynamic and manageable from the Craft control panel.
There’s no wrong way, just the way that is best for your project. I’ve primarily used the hard-coded approach for my projects and a mix of everything for client or customer websites.
Creating Navigation in Craft CMS is made up of the following videos: