4. Global-Set-Powered Navigation in Craft CMS

Published: 06 October 2021
on channel: CraftQuest
434
8

In this example, we create a Global Set in Craft and use it to build and manage the site navigation. The advantage here is that it allows someone, presumably the client or customer, to manage the navigation from the Craft control panel. This is helpful in some scenarios because it doesn't require the intervention of a developer or technical staff member.

This implementation has the downside of straddling static and fully dynamic navigation, with limited control over child navigation items (like the drop-down we did in the Partially-Dynamic version above).

We can handle this navigation in a few ways because we can use any field or field type in a Global Set. For this version, let's use a Table field and manage all navigation items as table rows.

► Learn Craft for free with our comprehensive 41-part course:
https://craftquest.io/courses/craft-c...

► Learn more about Craft CMS:
https://craftquest.io

Originally published on CraftQuest: https://craftquest.io


Watch video 4. Global-Set-Powered Navigation in Craft CMS online without registration, duration hours minute second in high quality. This video was added by user CraftQuest 06 October 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 434 once and liked it 8 people.