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
Смотрите видео 4. Global-Set-Powered Navigation in Craft CMS онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь CraftQuest 06 Октябрь 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 434 раз и оно понравилось 8 людям.