 Django CMS 3.11.10 DocumentationThis method is used to build the menu tree. """ nodes = [] for poll in Poll.objects.all(): node = NavigationNode( title=poll.question, u in its get_nodes() method, we build and return a list of nodes, where: first we get all the Poll objects … and then create a NavigationNode object from each one … and return a list of these NavigationNodes its versioning capabilities to other objects, too, e.g., aliases as defined in djangocms- alias. Version states Each Page object can have many PageContent objects assigned actually containing the page’s0 码力 | 493 页 | 1.44 MB | 6 月前0.03 Django CMS 3.11.10 DocumentationThis method is used to build the menu tree. """ nodes = [] for poll in Poll.objects.all(): node = NavigationNode( title=poll.question, u in its get_nodes() method, we build and return a list of nodes, where: first we get all the Poll objects … and then create a NavigationNode object from each one … and return a list of these NavigationNodes its versioning capabilities to other objects, too, e.g., aliases as defined in djangocms- alias. Version states Each Page object can have many PageContent objects assigned actually containing the page’s0 码力 | 493 页 | 1.44 MB | 6 月前0.03
 django cms 3.6.x Documentationget_nodes(self, request): """ This method is used to build the menu tree. """ nodes = [] for poll in Poll.objects.all(): node = NavigationNode( title=poll.question, url=reverse('polls:detail', args=(poll.pk,)), its get_nodes() method, we build and return a list of nodes, where: • first we get all the Poll objects • . . . and then create a NavigationNode object from each one • . . . and return a list of these easily control what url will be returned on the language chooser. Note: If you have a multilingual objects be sure that you return the right url if you don’t have a translation for this language in get_absolute_url0 码力 | 278 页 | 1.63 MB | 1 年前3 django cms 3.6.x Documentationget_nodes(self, request): """ This method is used to build the menu tree. """ nodes = [] for poll in Poll.objects.all(): node = NavigationNode( title=poll.question, url=reverse('polls:detail', args=(poll.pk,)), its get_nodes() method, we build and return a list of nodes, where: • first we get all the Poll objects • . . . and then create a NavigationNode object from each one • . . . and return a list of these easily control what url will be returned on the language chooser. Note: If you have a multilingual objects be sure that you return the right url if you don’t have a translation for this language in get_absolute_url0 码力 | 278 页 | 1.63 MB | 1 年前3
 django cms 4.1.1 Documentation
django cms Documentation, Release 4.1.1 (continued from previous page) nodes = [] for poll in Poll.objects.all(): node = NavigationNode( title=poll.question, url=reverse("polls:detail", args=(poll.pk,)), its get_nodes() method, we build and return a list of nodes, where: • first we get all the Poll objects • ... and then create a NavigationNode object from each one • ... and return a list of these NavigationNodes its versioning capabilities to other objects, too, e.g., aliases as defined in djangocms-alias. Version states Each Page object can have many PageContent objects assigned actually containing the page’s0 码力 | 361 页 | 2.00 MB | 1 年前3 django cms 4.1.1 Documentation
django cms Documentation, Release 4.1.1 (continued from previous page) nodes = [] for poll in Poll.objects.all(): node = NavigationNode( title=poll.question, url=reverse("polls:detail", args=(poll.pk,)), its get_nodes() method, we build and return a list of nodes, where: • first we get all the Poll objects • ... and then create a NavigationNode object from each one • ... and return a list of these NavigationNodes its versioning capabilities to other objects, too, e.g., aliases as defined in djangocms-alias. Version states Each Page object can have many PageContent objects assigned actually containing the page’s0 码力 | 361 页 | 2.00 MB | 1 年前3
 django cms 3.10.x Documentationdjango cms Documentation, Release 3.9.0 (continued from previous page) nodes = [] for poll in Poll.objects.all(): node = NavigationNode( title=poll.question, url=reverse('polls:detail', args=(poll.pk,)), its get_nodes() method, we build and return a list of nodes, where: • first we get all the Poll objects • ... and then create a NavigationNode object from each one • ... and return a list of these NavigationNodes easily control what url will be returned on the language chooser. Note: If you have a multilingual objects be sure that you return the right url if you don’t have a translation for this language in get_absolute_url0 码力 | 296 页 | 1.79 MB | 1 年前3 django cms 3.10.x Documentationdjango cms Documentation, Release 3.9.0 (continued from previous page) nodes = [] for poll in Poll.objects.all(): node = NavigationNode( title=poll.question, url=reverse('polls:detail', args=(poll.pk,)), its get_nodes() method, we build and return a list of nodes, where: • first we get all the Poll objects • ... and then create a NavigationNode object from each one • ... and return a list of these NavigationNodes easily control what url will be returned on the language chooser. Note: If you have a multilingual objects be sure that you return the right url if you don’t have a translation for this language in get_absolute_url0 码力 | 296 页 | 1.79 MB | 1 年前3
 django cms 3.4.x Documentationyou’re already familiar with the CMS for a little, you’ll have encountered django CMS Plugins - the objects you can place into placeholders on your pages: “Text”, “Image” and so forth. We’re now going to This method is used to build the menu tree. """ nodes = [] for poll in Poll.objects.all(): node = NavigationNode( title=poll.question, url= in its get_nodes() method, we build and return a list of nodes, where: first we get all the Poll objects … and then create a NavigationNode object from each one … and return a list of these NavigationNodes0 码力 | 395 页 | 1.64 MB | 1 年前3 django cms 3.4.x Documentationyou’re already familiar with the CMS for a little, you’ll have encountered django CMS Plugins - the objects you can place into placeholders on your pages: “Text”, “Image” and so forth. We’re now going to This method is used to build the menu tree. """ nodes = [] for poll in Poll.objects.all(): node = NavigationNode( title=poll.question, url= in its get_nodes() method, we build and return a list of nodes, where: first we get all the Poll objects … and then create a NavigationNode object from each one … and return a list of these NavigationNodes0 码力 | 395 页 | 1.64 MB | 1 年前3
 django cms 3.5.x Documentationyou’re already familiar with the CMS for a little, you’ll have encountered django CMS Plugins - the objects you can place into placeholders on your pages: “Text”, “Image” and so forth. We’re now going to This method is used to build the menu tree. """ nodes = [] for poll in Poll.objects.all(): node = NavigationNode( title=poll.question, url= in its get_nodes() method, we build and return a list of nodes, where: first we get all the Poll objects … and then create a NavigationNode object from each one … and return a list of these NavigationNodes0 码力 | 403 页 | 1.69 MB | 1 年前3 django cms 3.5.x Documentationyou’re already familiar with the CMS for a little, you’ll have encountered django CMS Plugins - the objects you can place into placeholders on your pages: “Text”, “Image” and so forth. We’re now going to This method is used to build the menu tree. """ nodes = [] for poll in Poll.objects.all(): node = NavigationNode( title=poll.question, url= in its get_nodes() method, we build and return a list of nodes, where: first we get all the Poll objects … and then create a NavigationNode object from each one … and return a list of these NavigationNodes0 码力 | 403 页 | 1.69 MB | 1 年前3
 Django CMS 4.1.x DocumentationThis method is used to build the menu tree. """ nodes = [] for poll in Poll.objects.all(): node = NavigationNode( title=poll.question, u in its get_nodes() method, we build and return a list of nodes, where: first we get all the Poll objects … and then create a NavigationNode object from each one … and return a list of these NavigationNodes its versioning capabilities to other objects, too, e.g., aliases as defined in djangocms- alias. Version states Each Page object can have many PageContent objects assigned actually containing the page’s0 码力 | 518 页 | 1.66 MB | 6 月前3 Django CMS 4.1.x DocumentationThis method is used to build the menu tree. """ nodes = [] for poll in Poll.objects.all(): node = NavigationNode( title=poll.question, u in its get_nodes() method, we build and return a list of nodes, where: first we get all the Poll objects … and then create a NavigationNode object from each one … and return a list of these NavigationNodes its versioning capabilities to other objects, too, e.g., aliases as defined in djangocms- alias. Version states Each Page object can have many PageContent objects assigned actually containing the page’s0 码力 | 518 页 | 1.66 MB | 6 月前3
 django cms 4.1.x Documentationdjango cms Documentation, Release 4.1.2 (continued from previous page) nodes = [] for poll in Poll.objects.all(): node = NavigationNode( title=poll.question, url=reverse("polls:detail", args=(poll.pk,)), its get_nodes() method, we build and return a list of nodes, where: • first we get all the Poll objects • ... and then create a NavigationNode object from each one • ... and return a list of these NavigationNodes its versioning capabilities to other objects, too, e.g., aliases as defined in djangocms-alias. Version states Each Page object can have many PageContent objects assigned actually containing the page’s0 码力 | 357 页 | 1.99 MB | 1 年前3 django cms 4.1.x Documentationdjango cms Documentation, Release 4.1.2 (continued from previous page) nodes = [] for poll in Poll.objects.all(): node = NavigationNode( title=poll.question, url=reverse("polls:detail", args=(poll.pk,)), its get_nodes() method, we build and return a list of nodes, where: • first we get all the Poll objects • ... and then create a NavigationNode object from each one • ... and return a list of these NavigationNodes its versioning capabilities to other objects, too, e.g., aliases as defined in djangocms-alias. Version states Each Page object can have many PageContent objects assigned actually containing the page’s0 码力 | 357 页 | 1.99 MB | 1 年前3
 Django CMS 3.9.x DocumentationThis method is used to build the menu tree. """ nodes = [] for poll in Poll.objects.all(): node = NavigationNode( title=poll.question, u in its get_nodes() method, we build and return a list of nodes, where: first we get all the Poll objects … and then create a NavigationNode object from each one … and return a list of these NavigationNodes easily control what url will be returned on the language chooser. Note If you have a multilingual objects be sure that you return the right url if you don’t have a translation for this language in get_absolute_url0 码力 | 417 页 | 1.68 MB | 6 月前3 Django CMS 3.9.x DocumentationThis method is used to build the menu tree. """ nodes = [] for poll in Poll.objects.all(): node = NavigationNode( title=poll.question, u in its get_nodes() method, we build and return a list of nodes, where: first we get all the Poll objects … and then create a NavigationNode object from each one … and return a list of these NavigationNodes easily control what url will be returned on the language chooser. Note If you have a multilingual objects be sure that you return the right url if you don’t have a translation for this language in get_absolute_url0 码力 | 417 页 | 1.68 MB | 6 月前3
 Django CMS 3.9.x Documentationget_nodes(self, request): """ This method is used to build the menu tree. """ nodes = [] for poll in Poll.objects.all(): node = NavigationNode( title=poll.question, url=reverse('polls:detail', args=(poll.pk,)), its get_nodes() method, we build and return a list of nodes, where: • first we get all the Poll objects • ... and then create a NavigationNode object from each one 4.1. Django/Python compatibility table easily control what url will be returned on the language chooser. Note: If you have a multilingual objects be sure that you return the right url if you don’t have a translation for this language in get_absolute_url0 码力 | 298 页 | 1.79 MB | 6 月前3 Django CMS 3.9.x Documentationget_nodes(self, request): """ This method is used to build the menu tree. """ nodes = [] for poll in Poll.objects.all(): node = NavigationNode( title=poll.question, url=reverse('polls:detail', args=(poll.pk,)), its get_nodes() method, we build and return a list of nodes, where: • first we get all the Poll objects • ... and then create a NavigationNode object from each one 4.1. Django/Python compatibility table easily control what url will be returned on the language chooser. Note: If you have a multilingual objects be sure that you return the right url if you don’t have a translation for this language in get_absolute_url0 码力 | 298 页 | 1.79 MB | 6 月前3
共 92 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10














