torchbox / wagtail-template

A Django template for starting new Wagtail projects with Vagrant. NO LONGER MAINTANED
19 stars 8 forks source link

Generic menu include required #15

Open davecranwell opened 9 years ago

davecranwell commented 9 years ago

We seem to have to write a menu for every site. It would be worth having some reusable code in this repo that can easily be plugged in.

Something suitable for:

Ideally we'd be able modify it with parameters. Such as how deep it goes, whether to show parents and their siblings, what level to consider "root" (in case of multiple sites/translations in one build)

gasman commented 9 years ago

Seems like this would be a good thing to have in Wagtail itself (either in core or contrib), since it's not just Torchbox projects (or projects using Torchbox's project standards) that would benefit from this. Best practice for creating menus is a question that's come up in e.g. https://github.com/torchbox/wagtail/issues/776 - so it would be nice to have a drop-in solution for projects created with wagtail start. (I suspect that pasting code in from wagtaildemo is the most common route right now...)