Skip to content

Instantly share code, notes, and snippets.

@kkellydesign
Last active August 29, 2015 14:05
Show Gist options
  • Save kkellydesign/b7d27f80d576153fd875 to your computer and use it in GitHub Desktop.
Save kkellydesign/b7d27f80d576153fd875 to your computer and use it in GitHub Desktop.
django-treenav problem

Hi guys – if this isn't a bug and I've missed something, I apologize. I can't figure out what I might be doing wrong though. I'm running Django 1.4.12

I have the following menu defined in django-treenav:

treenav

I'm trying to display the primary navigation and secondary navigation full tree, drop-down style. (Primary navigation will only be one-level in practice, but for robustness, I'm trying to build it out for flexibility.) Here are the template tags I'm using:

{% show_treenav 'primary-navigation' full_tree='True' %}
{% show_treenav 'secondary-navigation' full_tree='True' %}

The problem I'm having is that in the secondary navigation, the third tier (what I've highlighted in yellow in the screenshot) isn't displaying in the menu unless I'm on its parent page, "glossary-terms." I took a guess, and putting an integer before or after full_tree='True' throws an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment