Add release note for changes to image chooser URL route names

pull/8931/head
Matt Westcott 2022-08-02 18:33:09 +02:00 zatwierdzone przez Matt Westcott
rodzic 7e91535fad
commit ae0495fa44
1 zmienionych plików z 7 dodań i 2 usunięć

Wyświetl plik

@ -227,10 +227,15 @@ The internal JavaScript functions `createPageChooser`, `createSnippetChooser`, `
* `createDocumentChooser(id)` should be replaced with `new DocumentChooser(id)`
* `createImageChooser(id)` should be replaced with `newImageChooser(id)`
### URL route names for document and snippet apps have changed
### URL route names for image, document and snippet apps have changed
If your code contains references to URL route names within the `wagtaildocs` or `wagtailsnippets` namespaces, these should be updated as follows:
If your code contains references to URL route names within the `wagtailimages`, `wagtaildocs` or `wagtailsnippets` namespaces, these should be updated as follows:
* `wagtailimages:chooser` is now `wagtailimages_chooser:choose`
* `wagtailimages:chooser_results` is now `wagtailimages_chooser:choose_results`
* `wagtailimages:image_chosen` is now `wagtailimages_chooser:chosen`
* `wagtailimages:chooser_upload` is now `wagtailimages_chooser:create`
* `wagtailimages:chooser_select_format` is now `wagtailimages_chooser:select_format`
* `wagtaildocs:chooser` is now `wagtaildocs_chooser:choose`
* `wagtaildocs:chooser_results` is now `wagtaildocs_chooser:choose_results`
* `wagtaildocs:document_chosen` is now `wagtaildocs_chooser:chosen`