menu_items.sort( \
cmp=lambda x,y: cmp(x['title'].lower(), y['title'].lower()))
+ cache.set('bpcms_contentmenu_%s' %(folderpath), menu_items)
+
return {
'content_submenu': menu_items,
}
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)