Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Generic menu include required #15

Open
davecranwell opened this issue Nov 4, 2014 · 1 comment
Open

Generic menu include required #15

davecranwell opened this issue Nov 4, 2014 · 1 comment

Comments

@davecranwell
Copy link
Contributor

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:

  • primary menu - the main areas/top sections of the site
  • secondary menu - shows the current page's siblings and parent's siblings or similar.
  • breadcrumbs - displays the current page's position within the site

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
Copy link
Member

gasman commented Nov 10, 2014

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. wagtail/wagtail#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...)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants