From e20fbcc3cd99973bbfa73c62b0f219fe1c4e2c90 Mon Sep 17 00:00:00 2001 From: "LB (Ben Johnston)" Date: Wed, 6 Dec 2017 14:50:04 +0800 Subject: [PATCH] Update register_page_listing_more_buttons example Use Button instead of PageListingButton in **register_page_listing_more_buttons** section. --- docs/reference/hooks.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/reference/hooks.rst b/docs/reference/hooks.rst index a536566a2..dbaa5dcc9 100644 --- a/docs/reference/hooks.rst +++ b/docs/reference/hooks.rst @@ -719,13 +719,13 @@ Page explorer @hooks.register('register_page_listing_more_buttons') def page_listing_more_buttons(page, page_perms, is_parent=False): - yield wagtailadmin_widgets.PageListingButton( + yield wagtailadmin_widgets.Button( 'A dropdown button', '/goes/to/a/url/', - priority=10 + priority=60 ) - The ``priority`` argument controls the order the buttons are displayed in the dropdown. Buttons are ordered from low to high priority, so a button with ``priority=10`` will be displayed before a button with ``priority=20``. + The ``priority`` argument controls the order the buttons are displayed in the dropdown. Buttons are ordered from low to high priority, so a button with ``priority=10`` will be displayed before a button with ``priority=60``. Buttons with dropdown lists