django cms 3.10.x Documentationmysite/templates/base.html is: The options control the levels of the site hierarchy that are displayed in the menu tree - but you don’t need to worry about exactly your fields my_placeholder = PlaceholderField(my_placeholder_slotname) # your methods Warning: For security reasons the related_name for a PlaceholderField may not be suppressed using '+'; this allows the menu call? Here is an example of a built-in modifier that marks all node levels: class Level(Modifier): """ marks all node levels """ post_cut = True def modify(self, request, nodes, namespace, root_id0 码力 | 296 页 | 1.79 MB | 1 年前3
Django CMS 3.9.x Documentationmysite/templates/base.html is: The options control the levels of the site hierarchy that are displayed in the menu tree - but you don’t need to worry about exactly my_placeholder = PlaceholderField(my_placeholder_slotname) # your methods Warning For security reasons the related_name for a PlaceholderField may not be suppressed using '+'; this allows the call? Here is an example of a built-in modifier that marks all node levels: class Level(Modifier): """ marks all node levels """ post_cut = True def modify(self, request, nodes, namespace0 码力 | 417 页 | 1.68 MB | 6 月前3
Django CMS 4.0.x Documentationmysite/templates/base.html is: The options control the levels of the site hierarchy that are displayed in the menu tree - but you don’t need to worry about exactly your fields my_placeholder = PlaceholderField(my_placeholder_slotname) # your methods Warning: For security reasons the related_name for a PlaceholderField may not be suppressed using '+'; this allows the menu call? Here is an example of a built-in modifier that marks all node levels: class Level(Modifier): """ marks all node levels """ post_cut = True def modify(self, request, nodes, namespace, root_id0 码力 | 296 页 | 1.79 MB | 6 月前3
Django CMS 3.9.x Documentationmysite/templates/base.html is: The options control the levels of the site hierarchy that are displayed in the menu tree - but you don’t need to worry about exactly 4.1. Django/Python compatibility table 39 django cms Documentation, Release 3.10.0 Warning: For security reasons the related_name for a PlaceholderField may not be suppressed using '+'; this allows the menu call? Here is an example of a built-in modifier that marks all node levels: class Level(Modifier): """ marks all node levels """ post_cut = True def modify(self, request, nodes, namespace, root_id0 码力 | 298 页 | 1.79 MB | 6 月前3
django cms 3.7.x Documentationclass="nav navbar-nav"> {% show_menu 0 100 100 100 "menu.html" %} The options control the levels of the site hierarchy that are displayed in the menu tree - but you don’t need to worry about exactly fields my_placeholder = PlaceholderField(my_placeholder_slotname) # your methods Warning For security reasons the related_name for a PlaceholderField may not be suppressed using '+'; this allows the call? Here is an example of a built-in modifier that marks all node levels: class Level(Modifier): """ marks all node levels """ post_cut = True def modify(self, request, nodes, namespace0 码力 | 409 页 | 1.67 MB | 1 年前3
Django CMS 3.8.x Documentationmysite/templates/base.html is: The options control the levels of the site hierarchy that are displayed in the menu tree - but you don’t need to worry about exactly my_placeholder = PlaceholderField(my_placeholder_slotname) # your methods Warning For security reasons the related_name for a PlaceholderField may not be suppressed using '+'; this allows the call? Here is an example of a built-in modifier that marks all node levels: class Level(Modifier): """ marks all node levels """ post_cut = True def modify(self, request, nodes, namespace0 码力 | 413 页 | 1.67 MB | 6 月前3
django cms 3.3.x Documentationrelease notes for detailed information. Warning Adding the 'djangocms_snippet' plugin is a potential security hazard. For more information, refer to snippet_plugin [https://github.com/divio/djangocms-snippet] call? Here is an example of a built-in modifier that marks all node levels: class Level(Modifier): """ marks all node levels """ post_cut = True def modify(self, request, nodes, namespace else: node.level = 0 self.mark_levels(node, post_cut) return nodes def mark_levels(self, node, post_cut): for child in node.children:0 码力 | 386 页 | 1.56 MB | 1 年前3
django cms 3.6.x Documentationclass="nav navbar-nav"> {% show_menu 0 100 100 100 "menu.html" %} The options control the levels of the site hierarchy that are displayed in the menu tree - but you don’t need to worry about exactly your fields my_placeholder = PlaceholderField(my_placeholder_slotname) # your methods Warning: For security reasons the related_name for a PlaceholderField may not be suppressed using '+'; this allows the breadcrumb call rather than a menu call? Here is an example of a built-in modifier that marks all node levels: class Level(Modifier): """ (continues on next page) 4.1. Django/Python compatibility table 850 码力 | 278 页 | 1.63 MB | 1 年前3
django cms 3.4.x Documentationcall? Here is an example of a built-in modifier that marks all node levels: class Level(Modifier): """ marks all node levels """ post_cut = True def modify(self, request, nodes, namespace else: node.level = 0 self.mark_levels(node, post_cut) return nodes def mark_levels(self, node, post_cut): for child in node.children: menu_level + 1 else: child.level = node.level + 1 self.mark_levels(child, post_cut) menu_pool.register_modifier(Level) Performance issues in menu modifiers Navigation0 码力 | 395 页 | 1.64 MB | 1 年前3
django cms 3.5.x Documentationcall? Here is an example of a built-in modifier that marks all node levels: class Level(Modifier): """ marks all node levels """ post_cut = True def modify(self, request, nodes, namespace else: node.level = 0 self.mark_levels(node, post_cut) return nodes def mark_levels(self, node, post_cut): for child in node.children: menu_level + 1 else: child.level = node.level + 1 self.mark_levels(child, post_cut) menu_pool.register_modifier(Level) Performance issues in menu modifiers Navigation0 码力 | 403 页 | 1.69 MB | 1 年前3
共 386 条
- 1
- 2
- 3
- 4
- 5
- 6
- 39













