django-navbuilder 0.1
pip install django-navbuilder
Released:
Build hierarchical navigation objects from multiple link objects
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD License (BSD)
- Author: Praekelt Consulting
Classifiers
- Framework
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Project description
Django Navbuilder
Build hierarchical navigation objects from multiple link objects
Installation
Install or add django-navbuilder to your Python path.
Add navbuilder to your INSTALLED_APPS setting.
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
Initial release.
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD License (BSD)
- Author: Praekelt Consulting
Classifiers
- Framework
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django-navbuilder-0.1.tar.gz
.
File metadata
- Download URL: django-navbuilder-0.1.tar.gz
- Upload date:
- Size: 20.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
e5d5eaee09bde77ce637cbb34ef662c471aed2a98fe9d3332e3f3a618bffbb91
|
|
MD5 |
43d79d1f30ef07c9d690676975f17715
|
|
BLAKE2b-256 |
77b7ef7cae4ce70add46aea83ec3dac8aca55aba14136c2b956cb4c9bbd15f72
|
File details
Details for the file django_navbuilder-0.1-py2.7.egg
.
File metadata
- Download URL: django_navbuilder-0.1-py2.7.egg
- Upload date:
- Size: 40.6 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
6eed10f374796c9b8cec404f07121475ca3dcd7cb7e70cc3448a471c9808e398
|
|
MD5 |
147f8d337cebc1ecfde7dffdce11b832
|
|
BLAKE2b-256 |
3af59c19014345a79bfc57dccca82a9cc32aa8d9c4ec9a10934fcad594a1bdfa
|