django cms 4.1.x Documentationerror instead. After each of the steps below run cms check to verify that you have resolved that item in its checklist. Adding content-handling functionality You now have the basics set up for a django every page of the site, a new item in the toolbar: The populate() method is what gets called when the toolbar is built. In it, we’re using get_or_create_menu() to add a Polls item to the toolbar. 36 Chapter manipulate, so let’s change the populate() method to add an item that allows us to see the full list of polls in the sideframe, with add_sideframe_item(). from cms.utils.urlutils import admin_reverse [...]0 码力 | 357 页 | 1.99 MB | 1 年前3
django cms 4.1.1 Documentation
error instead. After each of the steps below run cms check to verify that you have resolved that item in its checklist. Adding content-handling functionality You now have the basics set up for a django every page of the site, a new item in the toolbar: The populate() method is what gets called when the toolbar is built. In it, we’re using get_or_create_menu() to add a Polls item to the toolbar. 36 Chapter manipulate, so let’s change the populate() method to add an item that allows us to see the full list of polls in the sideframe, with add_sideframe_item(). from cms.utils.urlutils import admin_reverse [...]0 码力 | 361 页 | 2.00 MB | 1 年前3
Django CMS 4.1.x Documentationan error instead. After each of the steps below run cms check to verify that you have resolved that item in its checklist. Adding content-handling functionality MEDIA_URL = "/media/" MEDIA_ROOT = os.path have your new cms_toolbars.py file recognised. You will now find, in every page of the site, a new item in the toolbar: from cms.toolbar_base import CMSToolbar from cms.toolbar_pool import toolbar_pool what gets called when the toolbar is built. In it, we’re using get_or_create_menu() to add a Polls item to the toolbar. Add nodes to the Polls menu So far, the Polls menu is empty. We can extend populate()0 码力 | 518 页 | 1.66 MB | 6 月前3
django cms 3.6.x Documentationhave your new cms_toolbars.py file recognised. You will now find, in every page of the site, a new item in the toolbar: 4.1. Django/Python compatibility table 21 django cms Documentation, Release 3.6 what gets called when the toolbar is built. In it, we’re using get_or_create_menu() to add a Polls item to the toolbar. Add nodes to the Polls menu So far, the Polls menu is empty. We can extend populate() manipulate, so let’s change the populate() method to add an item that allows us to see the full list of polls in the sideframe, with add_sideframe_item(). from cms.utils.urlutils import admin_reverse [...]0 码力 | 278 页 | 1.63 MB | 1 年前3
Django CMS 4.0.x Documentationevery page of the site, a new item in the toolbar: The populate() method is what gets called when the toolbar is built. In it, we’re using get_or_create_menu() to add a Polls item to the toolbar. 22 Chapter manipulate, so let’s change the populate() method to add an item that allows us to see the full list of polls in the sideframe, with add_sideframe_item(). from cms.utils.urlutils import admin_reverse [...] class get_or_create_menu('polls_cms_integration-polls', 'Polls') menu.add_sideframe_item( name='Poll list', # name of the new menu item url=admin_reverse('polls_poll_changelist'), # the URL it should open with )0 码力 | 296 页 | 1.79 MB | 6 月前3
Django CMS 3.9.x Documentationevery page of the site, a new item in the toolbar: The populate() method is what gets called when the toolbar is built. In it, we’re using get_or_create_menu() to add a Polls item to the toolbar. Add nodes manipulate, so let’s change the populate() method to add an item that allows us to see the full list of polls in the sideframe, with add_sideframe_item(). from cms.utils.urlutils import admin_reverse [...] class get_or_create_menu('polls_cms_integration-polls', 'Polls') menu.add_sideframe_item( name='Poll list', # name of the new menu item url=admin_reverse('polls_poll_changelist'), # the URL it should open with )0 码力 | 298 页 | 1.79 MB | 6 月前3
django cms 3.10.x Documentationevery page of the site, a new item in the toolbar: The populate() method is what gets called when the toolbar is built. In it, we’re using get_or_create_menu() to add a Polls item to the toolbar. 22 Chapter manipulate, so let’s change the populate() method to add an item that allows us to see the full list of polls in the sideframe, with add_sideframe_item(). from cms.utils.urlutils import admin_reverse [...] get_or_create_menu('polls_cms_integration-polls', 'Polls') menu.add_sideframe_item( name='Poll list', # name of the new menu item url=admin_reverse('polls_poll_changelist'), # the URL it should open with0 码力 | 296 页 | 1.79 MB | 1 年前3
django cms 3.7.x Documentationevery page of the site, a new item in the toolbar: The populate() method is what gets called when the toolbar is built. In it, we’re using get_or_create_menu() to add a Polls item to the toolbar. 6.1.1.1 manipulate, so let’s change the populate() method to add an item that allows us to see the full list of polls in the sideframe, with add_sideframe_item(). from cms.utils.urlutils import admin_reverse [...] ration- polls', 'Polls') menu.add_sideframe_item( name='Poll list', # name of the new menu item url=admin_reverse('polls_poll_changelist')0 码力 | 409 页 | 1.67 MB | 1 年前3
Django CMS 3.9.x Documentationpage of the site, a new item in the toolbar: The populate() method is what gets called when the toolbar is built. In it, we’re using get_or_create_menu() to add a Polls item to the toolbar. 6.1.1.1. manipulate, so let’s change the populate() method to add an item that allows us to see the full list of polls in the sideframe, with add_sideframe_item(). from cms.utils.urlutils import admin_reverse [...] gration- polls', 'Polls') menu.add_sideframe_item( name='Poll list', # name of the new menu item url=admin_reverse('polls_poll_changelist')0 码力 | 417 页 | 1.68 MB | 6 月前3
Django CMS 3.8.x Documentationpage of the site, a new item in the toolbar: The populate() method is what gets called when the toolbar is built. In it, we’re using get_or_create_menu() to add a Polls item to the toolbar. 6.1.1.1. manipulate, so let’s change the populate() method to add an item that allows us to see the full list of polls in the sideframe, with add_sideframe_item(). from cms.utils.urlutils import admin_reverse [...] gration- polls', 'Polls') menu.add_sideframe_item( name='Poll list', # name of the new menu item url=admin_reverse('polls_poll_changelist')0 码力 | 413 页 | 1.67 MB | 6 月前3
共 53 条
- 1
- 2
- 3
- 4
- 5
- 6













