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.

Metadata

Release files for django-navbuilder 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-navbuilder 0.1
File Size Uploaded
django-navbuilder-0.1.tar.gz 20.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-navbuilder 0.1
File Interpreter ABI Platform
django_navbuilder-0.1-py2.7.egg Legacy Egg format - - Details

Total release size: 61.1 kB

Release files / django-navbuilder-0.1.tar.gz

Download URL django-navbuilder-0.1.tar.gz
Size 20.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e5d5eaee09bde77ce637cbb34ef662c471aed2a98fe9d3332e3f3a618bffbb91
BLAKE2b-256 checksum
How to use checksums
77b7ef7cae4ce70add46aea83ec3dac8aca55aba14136c2b956cb4c9bbd15f72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_navbuilder-0.1-py2.7.egg

Download URL django_navbuilder-0.1-py2.7.egg
Size 40.6 kB
Tags Egg
SHA-256 checksum
How to use checksums
6eed10f374796c9b8cec404f07121475ca3dcd7cb7e70cc3448a471c9808e398
BLAKE2b-256 checksum
How to use checksums
3af59c19014345a79bfc57dccca82a9cc32aa8d9c4ec9a10934fcad594a1bdfa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page