@register.inclusion_tag(u'breadcrumbs.html')
def feincms_breadcrumbs(page, include_self=True):
 ancs = page.get_ancestors()
 bc = [(anc.get_absolute_url(), anc.short_title()) for anc in ancs]
 if include_self:
  bc.append((None, page.short_title()))
 return {u'trail': bc}

@ register . inclusion_tag ( u'breadcrumbs.html' ) def feincms_breadcrumbs ( page , include_self = True ) : ancs = page . get_ancestors ( ) bc = [ ( anc . get_absolute_url ( ) , anc . short_title ( ) ) for anc in ancs ] if include_self : bc . append ( ( None , page . short_title ( ) ) ) return { u'trail' : bc }
generate a list of the pages ancestors suitable for use as breadcrumb navigation .