Skip to content

Commit

Permalink
Added docs for the new templatetag
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrochh committed Jul 14, 2011
1 parent e20bec6 commit 6e4f8b6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.rst
Expand Up @@ -19,3 +19,14 @@ form::

class ProductAdmin(admin.ModelAdmin):
form = ProductForm


For your convenience we have added a templatetag ``show_root_categories`` that
outputs all root categories for you::

{% load shop_simplecategories_tags %}

<ul>{% show_root_categories %}</ul>

If you want to manipulate the output of that template tag, just override the template
``shop_simplecategories/show_root_categories.html``

0 comments on commit 6e4f8b6

Please sign in to comment.