Template tags

Every template tag render crumb title using template syntax with given context (from your view), so you can use something like {{ myvar }} in a title for a view which have the myvar variable available in its context. This means template blocks and filters can be used also.

Note

Template tags require some variable inside Template context that are injected from context processor autobreadcrumbs.context_processors.AutoBreadcrumbsContext. So you either have to enabled it in your template context processors or inject them from your views.

autobreadcrumbs.templatetags.autobreadcrumb.currentwalkthroughto(parser, token)[source]

Template tag to output content if current ressource walk through given url name.

Example

Template tag take one requirement argument name that is an url name to search for in breadcrumbs, if the current ressource crumb walk through it, content inside tag will be rendered:

{% load autobreadcrumb %}
{% currentwalkthroughto 'bar' %}Hello{% endcurrentwalkthroughto %}
autobreadcrumbs.templatetags.autobreadcrumb.current_title_from_breadcrumbs(context)[source]

Template tag to output breadcrumb title from current ressource crumb.

Example

{% load autobreadcrumb %}
{% current_title_from_breadcrumbs %}
autobreadcrumbs.templatetags.autobreadcrumb.autobreadcrumbs_tag(context)[source]

Template tag to output HTML for full breadcrumbs using template autobreadcrumbs_tag.html.

Example

{% load autobreadcrumb %}
{% autobreadcrumbs_tag %}

Template tag which use AUTOBREADCRUMBS_HTML_LINK and AUTOBREADCRUMBS_HTML_SEPARATOR settings to build a HTML list of breadcrumbs.

Returned HTML is marked as safe (not to escape) for templates.

Example

{% load autobreadcrumb %}
{% autobreadcrumbs_links %}