diff --git a/categories/templates/categories/base.html b/categories/templates/categories/base.html new file mode 100644 index 0000000..385820f --- /dev/null +++ b/categories/templates/categories/base.html @@ -0,0 +1,3 @@ +{% extends 'base.html' %} +{% block content %} +{% endblock %} \ No newline at end of file diff --git a/categories/templates/categories/category_detail.html b/categories/templates/categories/category_detail.html index 9861c04..3865fa1 100644 --- a/categories/templates/categories/category_detail.html +++ b/categories/templates/categories/category_detail.html @@ -1,4 +1,17 @@ +{% extends 'categories/base.html' %} +{% load category_tags %} +{% block content %} +

breadcrumbs category result:

+{% breadcrumbs category %} +

breadcrumbs category ">" result:

+{% breadcrumbs category ">" %} +

display_path_as_ul category result:

+{% display_path_as_ul category %} +

display_drilldown_as_ul category result:

+{% display_drilldown_as_ul category %} +

category.get_ancestors|category_path filter result: {{ category.get_ancestors|category_path }}

{{ category }}

{% if category.parent %}

Go up to {{ category.parent }}

{% endif %} -

{{ category.description }}

-{% if category.children.count %}

Subcategories

{% endif %} \ No newline at end of file +{% if category.description %}

{{ category.description }}

{% endif %} +{% if category.children.count %}

Subcategories

{% endif %} +{% endblock %} \ No newline at end of file diff --git a/categories/templates/categories/category_list.html b/categories/templates/categories/category_list.html index d49a504..ff87511 100644 --- a/categories/templates/categories/category_list.html +++ b/categories/templates/categories/category_list.html @@ -1,2 +1,5 @@ +{% extends 'categories/base.html' %} +{% block content %}

Categories

- \ No newline at end of file + +{% endblock %} \ No newline at end of file diff --git a/example/templates/base.html b/example/templates/base.html new file mode 100644 index 0000000..966f35f --- /dev/null +++ b/example/templates/base.html @@ -0,0 +1,12 @@ + + + + + Django Categories + + +{% block content %} +{% endblock %} + +