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

Partially-Dynamic Navigation

A partially dynamic navigation is one that pulls in some navigation items via Element queries in Craft. A typical example of this is a drop-down that has additional subpages under the main navigation item.

A par­tial­ly dynam­ic nav­i­ga­tion is one that pulls in some nav­i­ga­tion items via Ele­ment queries in Craft. A typ­i­cal exam­ple of this is a drop-down that has addi­tion­al sub­pages under the main nav­i­ga­tion item.

On the CraftQuest site, I recent­ly set this up on the Quests nav­i­ga­tion item. In this imple­men­ta­tion, I’m using an Ele­ment query to fetch all of the Quests, dis­play the title and short descrip­tion, and link it up with the entry URL. This approach allows me to keep the nav­i­ga­tion sim­ple and fast while mak­ing it dynam­ic exact­ly where it needs to be.

Topic
Twig
+1 more
Instructor
Ryan Irelan
Level
Beginner
Date Published
October 05, 2021
Ryan Irelan

I am the creator of CraftQuest, a web developer, and former software team manager. I spend most of my time improving CraftQuest with code and courses. When I'm not in front of the computer, I spend my time with my family, and running on the roads and trails of Austin, TX.