You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PageChooserPanel displays selected page title instead of custom get_admin_display_title value.
When I click to select a page, the chooser displays correctly the custom get_admin_display_title in the list of pages.
When I select the page desired from the chooser, the chosen page title doesn't display the expected value of get_admin_display_title. Instead, it displays the page title which I think it's a bug.
I had a look at wagtail/admin/templates/wagtailadmin/widgets/page_chooser.html and it should display the get_admin_display_title right?
Steps to Reproduce
Have a page with a custom get_admin_display_title
Have another page with a PageChooserPanel
Use the PageChooserPanel in the admin to select the page with custom get_admin_display_title. Once selected, the title of the page displayed is the page title instead of get_admin_display_title value
Technical details
Python version: 3.7.3
Django version: 2.2.7
Wagtail version: 2.7
Browser version: Chrome 78
The text was updated successfully, but these errors were encountered:
@bogdangoie@gasman I think the reason for this thing is this commit. According to this commit, it seems to me as intentional to show the actual title that gets shown to end user and not the admin title so that the admin knows what the title will be to the end user.
@SaptakS We do want to use the real title as the link text within rich text fields, but PageChooserPanel should use get_admin_display_title. It may be that the link element in _page_title_choose.html needs to include both versions of the title as data- attributes, so that we can return both of them to the calling code (whether that's the rich text field or the page chooser widget) so that it can choose the appropriate one.
Issue Summary
PageChooserPanel displays selected page title instead of custom get_admin_display_title value.
When I click to select a page, the chooser displays correctly the custom get_admin_display_title in the list of pages.
When I select the page desired from the chooser, the chosen page title doesn't display the expected value of get_admin_display_title. Instead, it displays the page title which I think it's a bug.
I had a look at wagtail/admin/templates/wagtailadmin/widgets/page_chooser.html and it should display the get_admin_display_title right?
Steps to Reproduce
Technical details
The text was updated successfully, but these errors were encountered: