Files changed (1)
""" creates mptt style parent-child list for extending django-cms navigation (menu & breadcrumb); structured on photologue.urls """
+ if cache.get('cmsplugin_photologue_get_nodes'): #if nav tree exists in cache, return it immediately
#path example: request.META['PATH_INFO'] = u'/galleries/photo/page/2/' or u'/galleries/gallery/page/1/'
- page_path = request.META['PATH_INFO'].split('/')[-4:-1] #eg: '/mygalleries/gallery/page/1/' -> ['gallery', 'page', '1']
#name the node with a string, reverse to the paged named url, and pass the page value from page_path