Skip to content
Snippets Groups Projects
Verified Commit 5e08ab85 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Add documentation for related_views

parent 5d9de292
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@ Django Menu Generator uses python dictionaries to represent the menu items, usua
"url": URL spec,
"root": True | False,
"related_urls": [ list of related URLs ],
"related_views": [ list of related views ],
"validators": [ list of validators ],
"submenu": Dictionary like this
}
......@@ -25,6 +26,8 @@ Where each key is as follows:
- ``related_urls``: If one of this URLs is part of the path on the currently opened page, the menu item will be marked as selected (format of URLs like described at :doc:`urls`)
- ``related_views``: If the currently opened page resolves to one of these views, the menu item will be marked as selected.
- ``root``: A flag to indicate this item is the root of a path, with this you can correctly mark nested menus as selected.
- ``validators``: See :doc:`validators`
......@@ -89,4 +92,4 @@ With this feature you can have a project structure like this::
...
You can have a mix of the two approaches if you wish
\ No newline at end of file
You can have a mix of the two approaches if you wish
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment