Skip to main content

Django Navbuilder

Build hierarchical navigation objects from multiple link objects

https://travis-ci.org/praekelt/django-navbuilder.svg?branch=develop https://coveralls.io/repos/github/praekelt/django-navbuilder/badge.svg?branch=develop

Installation

  1. Install or add django-navbuilder to your Python path.

  2. Add navbuilder to your INSTALLED_APPS setting.

  3. Add url(r'^navbuilder/', include("navbuilder.urls", namespace="navbuilder")) to your url patterns (only required if you intend on using the list/detail views)

Usage

Include the navbuilder templatetags:

{% load navbuilder_tags %}

Use the inclusion tag which has been provided: {% render_menu slug %}

Breadcrumbs

The breadcrumbs tag tries to render breadcrumbs, based on the current object. It does this by trying to find a menu item that points to context[“object”], and then constructs a breadcrumb trail depending on the menu structure. It prefers using the structure of the menu designated by slug, but will use any menu available. Typical use case for this would be if the main menu has an about/terms page, but it’s mirrored in the footer menu in a much flatter layout. We prefer the main menu structure. This also allows us to construct breadcrumbs for items that don’t show up in page menus at all.

Inclusion tag usage: {% navbuilder_breadcrumbs slug %}

The very specific naming for the tag is used so that it could be used with other breadcrumb generators as a fallback.

Authors

Praekelt Consulting

  • Jonathan Bydendyk

  • Hedley Roos

Changelog

0.1

  1. Initial release.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-navbuilder-0.1.tar.gz (20.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_navbuilder-0.1-py2.7.egg (40.6 kB view details)

Uploaded Egg

File details

Details for the file django-navbuilder-0.1.tar.gz.

File metadata

File hashes

Hashes for django-navbuilder-0.1.tar.gz
Algorithm Hash digest
SHA256 e5d5eaee09bde77ce637cbb34ef662c471aed2a98fe9d3332e3f3a618bffbb91
MD5 43d79d1f30ef07c9d690676975f17715
BLAKE2b-256 77b7ef7cae4ce70add46aea83ec3dac8aca55aba14136c2b956cb4c9bbd15f72

See more details on using hashes here.

File details

Details for the file django_navbuilder-0.1-py2.7.egg.

File metadata

File hashes

Hashes for django_navbuilder-0.1-py2.7.egg
Algorithm Hash digest
SHA256 6eed10f374796c9b8cec404f07121475ca3dcd7cb7e70cc3448a471c9808e398
MD5 147f8d337cebc1ecfde7dffdce11b832
BLAKE2b-256 3af59c19014345a79bfc57dccca82a9cc32aa8d9c4ec9a10934fcad594a1bdfa

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page