django - djangocms 3.2 page level -
i've upgraded django-cms powered application 2.4 3.2 , want show submenu of djangocms page this:
{% extends "layouts/base.html" %} {% load cms_tags menu_tags %} {% block 'content' %} {% page_lvl=request.current_page.level %} {% show_sub_menu 1 page_lvl 1 'menues/cms_submenu.html' %} {% endwith %} {% endblock %}
however, current_page.level seems none - code worked in 2.4, seems page no longer has .level attribute. did go to?
as turns out, djangocms switched mptttree to treebeard. result, information stored in .depth attribute instead .level - there offset compared .level of 1 (so .level 3 .depth 4).
Comments
Post a Comment