kopia lustrzana https://github.com/wagtail/wagtail
6.0 release - Add versionadded sections & release notes links
rodzic
65e693c6e8
commit
b81f369498
|
@ -236,6 +236,10 @@ so the form field for a model field can be overridden by adding it to the custom
|
|||
|
||||
## Customising the generated copy page form
|
||||
|
||||
```{versionadded} 6.0
|
||||
|
||||
```
|
||||
|
||||
```{eval-rst}
|
||||
.. class:: wagtail.admin.forms.CopyForm
|
||||
```
|
||||
|
|
|
@ -99,6 +99,10 @@ If neither `panels` nor `edit_handler` is defined and the {meth}`~ModelViewSet.g
|
|||
|
||||
### Copy view
|
||||
|
||||
```{versionadded} 6.0
|
||||
|
||||
```
|
||||
|
||||
The copy view is enabled by default and will be accessible by users with the 'add' permission on the model. To disable it, set {attr}`~.ModelViewSet.copy_view_enabled` to `False`.
|
||||
|
||||
The view's form will be generated in the same way as create or edit forms. To use a custom form, override the `copy_view_class` and modify the `form_class` property on that class.
|
||||
|
|
|
@ -528,6 +528,8 @@ WAGTAILADMIN_USER_LOGIN_FORM = 'users.forms.LoginForm'
|
|||
|
||||
Allows the default `LoginForm` to be extended with extra fields.
|
||||
|
||||
(wagtailadmin_login_url)=
|
||||
|
||||
### `WAGTAILADMIN_LOGIN_URL`
|
||||
|
||||
```python
|
||||
|
|
|
@ -43,7 +43,7 @@ This feature was implemented by Nick Lee, Thibaud Colas, and Sage Abdullah.
|
|||
|
||||
### Other features
|
||||
|
||||
* Added `search_index` option to StreamField blocks to control whether the block is indexed for searching (Vedant Pandey)
|
||||
* Added [`search_index` option to StreamField](streamfield_search) blocks to control whether the block is indexed for searching (Vedant Pandey)
|
||||
* Remember previous location on returning from page add/edit actions (Robert Rollins)
|
||||
* Update settings file in project settings to address Django 4.2 deprecations (Sage Abdullah)
|
||||
* Improve layout and accessibility of the image URL generator page, reduce reliance on JavaScript (Temidayo Azeez)
|
||||
|
@ -75,7 +75,7 @@ This feature was implemented by Nick Lee, Thibaud Colas, and Sage Abdullah.
|
|||
* Move locale selector in generic IndexView to a filter (Sage Abdullah)
|
||||
* Add optional caption field to `TypedTableBlock` (Tommaso Amici, Cynthia Kiser)
|
||||
* Switch the `TableBlock` header controls to a field that requires user input (Bhuvnesh Sharma, Aman Pandey, Cynthia Kiser)
|
||||
* Add `WAGTAILADMIN_LOGIN_URL` setting to allow customising the login URL (Neeraj Yetheendran)
|
||||
* Add [`WAGTAILADMIN_LOGIN_URL` setting](wagtailadmin_login_url) to allow customising the login URL (Neeraj Yetheendran)
|
||||
* Replace legacy dropdown component with new Tippy dropdown-button (Thibaud Colas)
|
||||
* Add ability to filter by existence of child pages in the page listing view (Matt Westcott)
|
||||
* Polish dark theme styles and update color tokens (Thibaud Colas, Rohit Sharma)
|
||||
|
|
|
@ -95,6 +95,10 @@ Additionally, you can customise the base queryset for the listing view by overri
|
|||
|
||||
## Copy view
|
||||
|
||||
```{versionadded} 6.0
|
||||
|
||||
```
|
||||
|
||||
The copy view is enabled by default and will be accessible by users with the 'add' permission on the model. To disable it, set {attr}`~.ModelViewSet.copy_view_enabled` to `False`. Refer to [the copy view customisations for `ModelViewSet`](modelviewset_copy) for more details.
|
||||
|
||||
## Inspect view
|
||||
|
|
|
@ -577,8 +577,14 @@ hero_image = my_page.body.first_block_by_name('image')
|
|||
<div class="hero-image">{{ page.body.first_block_by_name.image }}</div>
|
||||
```
|
||||
|
||||
(streamfield_search)=
|
||||
|
||||
## Search considerations
|
||||
|
||||
```{versionadded} 6.0
|
||||
|
||||
```
|
||||
|
||||
Like any other field, content in a StreamField can be made searchable by adding the field to the model's search_fields definition - see {ref}`wagtailsearch_indexing_fields`. By default, all text content from the stream will be added to the search index. If you wish to exclude certain block types from being indexed, pass the keyword argument `search_index=False` as part of the block's definition. For example:
|
||||
|
||||
```python
|
||||
|
|
Ładowanie…
Reference in New Issue