Wykres commitów

810 Commity (6009903c55f429ecca10ea60b002719a52bc9ffb)

Autor SHA1 Wiadomość Data
LB Johnston b60828ac47 Hooks documentation - fix up admonition formatting 2023-09-19 12:18:51 +10:00
Gareth Palmer a63689869e Add support for merging cells in TableBlock.
Handsontable has support for merging table cells using the `mergeCells`
plugin but there was no support in Wagtail for storing which cells have
been merged or rendering them in the output template.

The client JavaScript will now save which cells have been merged and
the output template will merge or hide cells.

See https://handsontable.com/docs/6.2.0/Options.html#mergeCells
2023-09-08 08:30:49 +10:00
Matt Westcott 7b64f08e74 Allow ChooserViewSet to be filtered by specified URL parameters 2023-09-06 15:58:36 +01:00
Matt Westcott cbeb9a2512 Docs and release note for ChooserViewSet.get_object_list (#10851) 2023-09-04 18:45:39 +01:00
LB Johnston a19bae886d Format markdown files 2023-08-31 08:21:36 +10:00
Matt Westcott 151a386ff5 Add note to clarify that blocks are not interchangeable with model fields
Prompted by https://stackoverflow.com/questions/76973112/unknown-fields-specified-for-a-page-model-in-wagtail-at-content-panels/76973226?noredirect=1#comment135693718_76973226 and similar misconceptions people have made in the past.
2023-08-30 18:47:57 +01:00
Christer Jensen 0edf22ccbc
Allow overriding `export_headings` via ModelViewSet 2023-08-30 12:22:15 +01:00
Sage Abdullah 9a2d53d0cf
Move SnippetViewSet.list_per_page to ModelViewSet 2023-08-30 10:31:16 +01:00
Sage Abdullah 66216852b8
Move SnippetViewSet.list_export and export_filename to ModelViewSet 2023-08-30 10:30:17 +01:00
Sage Abdullah ccbd6849f3
Move SnippetViewSet.search_fields and search_backend_name definition to ModelViewSet 2023-08-30 10:29:29 +01:00
Sage Abdullah 3ae937120e
Fix cross-reference links in Snippets-ModelAdmin migration docs 2023-08-30 10:26:39 +01:00
Sage Abdullah 1fa124fe82
Move SnippetViewSet.list_filter and filterset_class definition to ModelViewSet 2023-08-30 10:26:38 +01:00
Sage Abdullah cd222898fd
Move SnippetViewSet.list_diplay definition to ModelViewSet 2023-08-22 16:34:51 +01:00
Sage Abdullah 91a539d797
Add docs and tests for custom template overrides in ModelViewSets 2023-08-22 15:56:42 +01:00
Sage Abdullah 65739c6925
Add ModelViewSet.add_to_reference_index to allow opting out of the ReferenceIndex 2023-08-16 11:42:11 +01:00
Sage Abdullah c7b5c9a04d
Update viewsets documentation to cover ViewSetGroups and menu item registration 2023-08-15 11:53:44 +01:00
Matt Westcott 9ff0f10310 Mention model_name in docstrings 2023-08-15 01:31:16 +01:00
Matt Westcott 485545a983 Allow ViewSet subclasses to customise url_prefix and url_namespace logic
Alternative approach to #10766, as per https://github.com/wagtail/wagtail/pull/10766#issuecomment-1675043897
2023-08-15 01:31:16 +01:00
Sage Abdullah c56ec67a39
Introduce BooleanColumn for showing boolean values as tick/cross icons 2023-08-10 09:11:26 +01:00
Sage Abdullah 133da4c3a9
Add docs for migrating ModelAdminGroup to SnippetViewSetGroup 2023-08-10 09:11:25 +01:00
Sage Abdullah fad37fd232
Add docs for migrating from modeladmin to snippets 2023-07-26 16:04:35 +01:00
Sage Abdullah c220662eed Fix link in custom HTML attributes in Panels documentation 2023-07-21 06:36:11 +10:00
Jake Howard 69724e4e3a Create preview-aware & page-enhanced cache template tags
This can be used in other places, but ensures caches are invalidated
whenever something about a page changes.

- Add a util to get wagtail-specific fragment cache keys
- Don't pollute context when injecting site variable
- Add documentation on wagtail fragment caching
- Define an intelligent cache key for pages
- Allow the components of the cache key to be easily modified
- Note that some manual changes may not create a new cache key

Co-authored-by: Andy Babic <andyjbabic@gmail.com>

Closes #5074
2023-07-20 08:24:09 +10:00
Sage Abdullah 64f496a2e1 Remove old versionadded / versionchanged notes 2023-07-19 17:53:26 +10:00
Sage Abdullah 9f48a8af94 Fix incorrect versionchanged number for user_page_permissions deprecation 2023-07-19 17:53:26 +10:00
sgfost 61594a2616
Add docs for managing stored queries in searchpromotions
and update docs about the search -> searchpromotions migration.
2023-07-18 15:00:56 +01:00
Sage Abdullah 191ddf8a55
Deprecate wagtail.contrib.modeladmin 2023-07-18 12:33:42 +01:00
LB Johnston 995809a318 Adopt data attribute usage of SwapController (w-swap) for all header searches
- Removes six inline scripts completely, no longer relying on window.headerSearch
- Update the fallback Stimulus Swap controller afterLoad to be a deprecated method
- Add upgrade considerations
- Fix regression from d554cbe310 where manually submitting page search results would load the partial, not full page response
- Closes #9950
2023-07-18 07:09:28 +10:00
Sage Abdullah 0bebe532e8 Add docs and tests for snippets inspect view 2023-07-17 17:19:11 +01:00
Matt Westcott d05c0c1bc1 Update docs to cover Elasticsearch 8 support 2023-07-17 16:18:37 +01:00
LB Johnston 3d471edbcf Clean whitespace formatting in docs
- Update formatting with prettier in the documentation
2023-07-17 22:24:54 +10:00
LB Johnston 0f97838381 Documentation - revise usage of e.g.
- Replace one usage of 'eg' with more suitable alternatives
- As per guidelines https://docs.wagtail.org/en/stable/contributing/general_guidelines.html#latin-phrases-and-abbreviations
2023-07-17 15:13:30 +10:00
zerolab ce4afcd578 Update documentation for AVIF support
Co-Authored-By: Aman Pandey <74553951+salty-ivy@users.noreply.github.com>
2023-07-14 16:17:53 +01:00
Sage Abdullah 12583d9c48
Allow purging revisions of only page/non-page models 2023-07-14 10:18:33 +01:00
Thibaud Colas 366e7f0153
Add support for --template argument to wagtail start 2023-07-12 13:18:31 +01:00
Antoni Martyniuk 47df43d722 Finish `attrs` support for FieldPanel and other Panels
- Closes #10133
- Rework from original PR #10323
- Add documentation
2023-07-12 20:25:09 +10:00
Sage Abdullah 0550b03dad
Allow customising the spreadsheet file name via SnippetViewSet.export_filename 2023-07-12 09:18:11 +01:00
Sage Abdullah 428b7914e2
Add docs and tests for exporting snippets listing 2023-07-12 09:18:09 +01:00
Thibaud Colas ff822babb4 Refactor "More" listing dropdowns to new dropdown component 2023-06-26 13:55:08 +01:00
Matt Westcott 4dd99007f6 Release note / upgrade consideration for TitlefieldPanel #10568 2023-06-20 13:03:03 +01:00
LB Johnston c85eaae5a7 Add TitleFieldPanel to support shared usage of title field sync
- Avoid a widget approach used on default content_panels on Page, instead allow a shared TitleFieldPanel to be used
- Fixes #10517
2023-06-20 08:33:54 +10:00
Sage Abdullah f8d5151140
Move UserPagePermissionsProxy deprecation warning to each method 2023-06-19 15:25:02 +01:00
Sage Abdullah 6531c4ff98
Reinstate UserPagePermissionsProxy object in ActionMenuItem's context 2023-06-19 15:25:02 +01:00
Sage Abdullah fa2a64e9d2
Remove user_page_permissions from page's ActionMenuItem 2023-06-19 15:25:00 +01:00
LB Johnston 96a494581c Documentation - clean up last two internal refs to use underscore
- As per https://docs.wagtail.org/en/latest/contributing/documentation_guidelines.html#reference-links - refs should be `lower_snake_case`
2023-06-19 15:18:02 +01:00
Etty c5f238f98d Deprecate insert_editor_css in favor of insert_global_admin_css (#10499)
Fixes #10402
2023-06-01 16:28:00 +01:00
LB Johnston aa9e9cddc7 Resolve multiple typos (spelling and grammar)
- Optimized/Customized/Catregorize -> Optimised/Customised/Categorise
- Github -> GitHub (80% were spelt with capital H, this is the way GitHub spells itself)
- GitPod -> Gitpod (most were without the capital P, Gitpod's site does not use capital P)
- Remove duplicate words (to to, the the)
- De-coupled -> decoupled
- implementors -> implementers (all other references used 'site implementers' so just aligning with the common case)
- Fix a/an usage in one case
- Fix one comment usage of ok, replace with OK
2023-05-30 21:07:37 +10:00
LB Johnston 5292f7dc1f Docs - fix whitespace formatting (Prettier) 2023-05-30 07:25:21 +10:00
Sage Abdullah 0c075fb8de Replace mentions of ModelAdmin with their snippets equivalent 2023-05-24 11:06:00 +01:00
Sage Abdullah 6ec734f836 Add separate headings for each snippets view customisation 2023-05-24 11:06:00 +01:00