Рет қаралды 19,992
Almost every website has some form of navigation. Wagtail websites are no different. But creating a menu isn't as easy as making top level pages (although that's an option!). In this tutorial we're going to explore how to create a Menu System using a Clusterable Model, Oderable, Snippet, and a custom template tag.. from scratch!
We'll also learn how to:
* Create a custom template tag, and loop through all the menu items
* Create custom properties in our MenuItem class to perform logic for us, so our templates can stay clean
* And more...
Full Tutorial: learnwagtail.com/tutorials/ho...
Git Commit: github.com/CodingForEverybody...
Wagtail Menus Package: github.com/rkhleics/wagtailmenus #Wagtail #Django #Python