Django CMS 2.1.x Documentationspecify from what level to which level should the navigation be rendered. If you have a home as a root node and don’t want to display home you can render the navigation only after level 1. The third parameter specifies how many levels of navigation should be dis- played if a node is not a direct ancestor or descendant of the current active node. Finally, the fourth parameter, extra_active (default=100), specifies specifies how many levels of descendants of the currently active node should be displayed. Some Examples Complete navigation (as a nested list): {% load cache menu_tags %}- 
{% show_menu 0 100 100 100 %}
 
0 码力 | 63 页 | 485.38 KB | 6 月前3
 Django CMS 2.3.x Documentationlevel the navigation shoud be rendered and at which level it should stop. If you have home as a root node and don’t want to display home you can render the navigation only after level 1. The third parameter if a node is not a direct ancestor or descendant of the current active node. The fourth parameter, extra_active (default=100), specifies how many levels of descendants of the currently active node should templates {{ node.is_leaf_node }} Is it the last in the tree? If true it doesn’t have any children. (This normally comes from mptt.) {{ node.level }} The level of the node. Starts at 0. {{ node.menu_level0 码力 | 92 页 | 666.41 KB | 6 月前3
 Django CMS 2.1.x Documentationspecify from what level to which level should the navigation be rendered. If you have a home as a root node and don’t want to display home you can render the navigation only after level 1. The third parameter specifies how many levels of navigation should be displayed if a node is not a direct ancestor or descendant of the current active node. Finally, the fourth parameter, extra_active (default=100), specifies specifies how many levels of descendants of the currently active node should be displayed. 5.1.1. Some Examples Complete navigation (as a nested list): {% load cache menu_tags %}-  
   {% show_menu 0 100
 
0 码力 | 81 页 | 554.09 KB | 6 月前3
 Django CMS 2.2.x Documentationspecify from what level to which level should the navigation be rendered. If you have a home as a root node and don’t want to display home you can render the navigation only after level 1. The third parameter if a node is not a direct ancestor or descendant of the current active node. The fourth parameter, extra_active (default=100), specifies how many levels of descendants of the currently active node should like login, logout and third-party apps. 1.6.5 Properties of Navigation Nodes in templates {{ node.is_leaf_node }} Is it the last in the tree? If true it doesn’t have any children. (This normally comes from0 码力 | 76 页 | 627.98 KB | 6 月前3
 django cms 2.2.x Documentationspecify from what level to which level should the navigation be rendered. If you have a home as a root node and don’t want to display home you can render the navigation only after level 1. The third parameter if a node is not a direct ancestor or descendant of the current active node. The fourth parameter, extra_active (default=100), specifies how many levels of descendants of the currently active node should templates {{ node.is_leaf_node }} Is it the last in the tree? If true it doesn’t have any children. (This normally comes from mptt.) {{ node.level }} The level of the node. Starts at 0. {{ node.menu_level0 码力 | 105 页 | 679.29 KB | 1 年前3
 Django CMS 2.4.x Documentationsite has 3 languages (English, German and French) and the second site has only Dutch. The default node defines default behavior for all languages. You can overwrite the default settings with language specific hide_untranslated as False globally. The English language overwrites this behavior. Every language node needs at least a code and a name property. code is the iso 2 code for the language. And name is the settings file. But maybe you want to leave the language name as it is. What are the properties a language node can have? code String. RFC5646 code of the language. Example: "en". Note: Is required for every language0 码力 | 104 页 | 709.98 KB | 6 月前3
 Django CMS 2.4.x Documentationsite has 3 languages (English, German and French) and the second site has only Dutch. The default node defines default behavior for all languages. You can overwrite the default settings with language specific hide_untranslated as False globally. The English language overwrites this behavior. Every language node needs at least a code and a name property. code is the iso 2 code for the language. And name is the settings file. But maybe you want to leave the language name as it is. What are the properties a language node can have? 3.4.1.1. code String. RFC5646 code of the language. Example: "en". Note Is required for0 码力 | 156 页 | 727.78 KB | 6 月前3
 django cms 4.1.x DocumentationPoll.objects.all(): node = NavigationNode( title=poll.question, url=reverse("polls:detail", args=(poll.pk,)), id=poll.pk, # unique id for this node within the menu ) nodes.append(node) return nodes menu_pool be required on the subset of nodes left after cutting. Nodes Nodes are assembled in a tree. Each node is an instance of the menus.base.NavigationNode class. A NavigationNode has attributes such as URL dictionary that’s provided for you to add arbitrary attributes to, rather than placing them directly on the node itself, where they might clash with something. 56 Chapter 5. Software version requirements and release0 码力 | 357 页 | 1.99 MB | 1 年前3
 django cms 4.1.1 Documentation
Poll.objects.all(): node = NavigationNode( title=poll.question, url=reverse("polls:detail", args=(poll.pk,)), id=poll.pk, # unique id for this node within the menu ) nodes.append(node) return nodes menu_pool be required on the subset of nodes left after cutting. Nodes Nodes are assembled in a tree. Each node is an instance of the menus.base.NavigationNode class. A NavigationNode has attributes such as URL dictionary that’s provided for you to add arbitrary attributes to, rather than placing them directly on the node itself, where they might clash with something. 56 Chapter 5. Software version requirements and release0 码力 | 361 页 | 2.00 MB | 1 年前3
 Django CMS 4.1.x Documentationnode = NavigationNode( title=poll.question, url=reverse("polls:detail", args=(poll.pk,)), id=poll.pk, # unique id for this node within the menu menu ) nodes.append(node) return nodes What’s happening here: we define a PollsMenu class, and register it we give the class a name attribute (will be displayed in admin) only be required on the subset of nodes left after cutting. Nodes Nodes are assembled in a tree. Each node is an instance of the menus.base.NavigationNode class. A NavigationNode has attributes such as URL0 码力 | 518 页 | 1.66 MB | 6 月前3
共 53 条
- 1
 - 2
 - 3
 - 4
 - 5
 - 6
 













