{ "info": { "author": "Caktus Consulting Group", "author_email": "solutions@caktusgroup.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "django-crumbs\n=============\n\ndjango-crumbs is a pluggable Django app for adding breadcrumbs to your project.\n\nInstallation\n============\n\n1) Install django-crumbs with pip::\n\n pip install django-crumbs\n\n2) Add to your INSTALLED_APPS and run syncdb::\n\n INSTALLED_APPS = (\n ...,\n 'crumbs',\n )\n\nHow It Works\n============\n1) In each template, you'll need to use the add_crumb template tag to append items to the trail::\n\n # basic crumb without a link\n {% add_crumb 'People' %}\n # crumb with link\n {% add_crumb 'People' 'list_people' %}\n # crumb with link and args\n {% add_crumb person.name 'view_person' person.pk %}\n\n*Note:* no bread crumbs will be printed if only one call to add_crumb has been made.\n\nSetup\n=====\n\n1) In your base.html template, add something along the lines of the following code::\n \n
\n {% block breadcrumb %}\n {% load breadcrumb_tags %}\n {% add_crumb 'Home' 'home' %}\n {% endblock %}\n {% render_breadcrumbs %}\n
\n\n2) Now in each extended child template, simply add a new crumb to the trail in the breadcrumb block::\n \n {% block breadcrumb %}\n {{ block.super }}\n {% load breadcrumb_tags %}\n {% add_crumb 'People' 'list_people' %}\n {% endblock %}\n\nExample\n=======\n\n1) base.html::\n \n
\n {% block breadcrumb %}\n {% load breadcrumb_tags %}\n {% add_crumb 'Home' 'home' %}\n {% endblock %}\n {% render_breadcrumbs %}\n
\n\n2) person/list.html::\n \n {% extends \"base.html\" %}\n {% block breadcrumb %}\n {{ block.super }}\n {% load breadcrumb_tags %}\n {% add_crumb 'People' 'list_people' %}\n {% endblock %}\n\n3) person/view.html::\n \n {% extends \"person/list.html\" %}\n {% block breadcrumb %}\n {{ block.super }}\n {% load breadcrumb_tags %}\n {% add_crumb person.name 'view_person' person.pk %}\n {% endblock %}\n \n\nDevelopment sponsored by `Caktus Consulting Group, LLC\n`_.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/caktus/django-crumbs/", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-crumbs", "package_url": "https://pypi.org/project/django-crumbs/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-crumbs/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/caktus/django-crumbs/" }, "release_url": "https://pypi.org/project/django-crumbs/0.5.0/", "requires_dist": null, "requires_python": null, "summary": "A pluggable Django app for adding breadcrumbs to your project.", "version": "0.5.0" }, "last_serial": 789402, "releases": { "0.5.0": [ { "comment_text": "", "digests": { "md5": "1a23dca98deb189eb21ad1c66c5ca2e0", "sha256": "61cfa5bb8791fd83cff7158c0740ea1d6ab3ee6046c3118c187368e3b4b51208" }, "downloads": -1, "filename": "django-crumbs-0.5.0.tar.gz", "has_sig": false, "md5_digest": "1a23dca98deb189eb21ad1c66c5ca2e0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3533, "upload_time": "2010-12-04T18:27:35", "url": "https://files.pythonhosted.org/packages/16/ff/0f06da398b968c60d52f90905e8da5c9cc873645bdf62828367daaa6fb2e/django-crumbs-0.5.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1a23dca98deb189eb21ad1c66c5ca2e0", "sha256": "61cfa5bb8791fd83cff7158c0740ea1d6ab3ee6046c3118c187368e3b4b51208" }, "downloads": -1, "filename": "django-crumbs-0.5.0.tar.gz", "has_sig": false, "md5_digest": "1a23dca98deb189eb21ad1c66c5ca2e0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3533, "upload_time": "2010-12-04T18:27:35", "url": "https://files.pythonhosted.org/packages/16/ff/0f06da398b968c60d52f90905e8da5c9cc873645bdf62828367daaa6fb2e/django-crumbs-0.5.0.tar.gz" } ] }