def content_breadcrumb(request):
path = request.path
if path[0:len(settings.BLOG_ROOT)] == settings.BLOG_ROOT:
- breadcrumb = [{'url': u'/', 'title': u'/'}, {'url': settings.BLOG_ROOT, 'title': u'blog'},]
+ breadcrumb = [{'url': u'/', 'title': u'Home'}, {'url': settings.BLOG_ROOT, 'title': u'blog'},]
path = path[len(settings.BLOG_ROOT):]
}
def content_breadcrumb(request):
- breadcrumb = [{'url': settings.BPCMS_ROOT, 'title': settings.BPCMS_ROOT},]
+ if settings.BPCMS_ROOT == "/":
+ breadcrumb = [{'url': settings.BPCMS_ROOT, 'title': "Home"}]
+ else:
+ breadcrumb = [{'url': settings.BPCMS_ROOT, 'title': settings.BPCMS_ROOT},]
# find where we are in the tree first
folderpath = request.path
folderpath = re.sub(u'^%s' %(settings.BPCMS_ROOT), '', folderpath)