Hi,
Personally, I tend to keep the breadcrumb logic completely separate from
any custom code logic.
Instead, I have something like this:
context['breadcrumb'] = ['menu1', 'sub menu 2', 'sub sub menu 3']
And then in the templates, you'd have something like;
{% if x.0 == 'menu1' %}
d
How to create breadcrumb in my view function?
class Category(MPTTModel):
name = models.CharField(max_length=50, verbose_name=u'Name')
parent = TreeForeignKey('self', null=True, blank=True,
related_name='children')
slug = models.SlugField()
class Product(models.Mod
2 matches
Mail list logo