Curtis Maloney
5c412d45c9
Update table_block.md ( #11474 )
...
* Correct `mergeCells` option.
2024-01-19 11:37:57 +10:00
Neeraj P Yetheendran
3faeabb4d7
Allow admin backend login URL to be customised ( #11415 )
...
Fixes #10882
2024-01-16 23:50:31 +00:00
sheepman4267
b7605a4c15
Fix typo in customisation.md
...
I'm pretty sure that "modal" should be "model" in this context.
2024-01-09 19:40:24 +10:00
Kalob Taulien
f4978a0f4b
Update sitemaps.md ( #11352 )
2023-12-18 09:07:46 +00:00
Andy Chosak
c109c661c1
Docs: Clarify appropriate use of MultipleChooserPanel
...
This documentation change clarifies that MultipleChooserPanel can only
be used when the inline model has a ForeignKey to a model that
implements Wagtail's chooser interface. Currently the docs mention
"a chooser for a ForeignKey relation" but it's not obvious how that
restricts which models can be pointed to or how to implement this for a
non-(image, document, snippet, page) model.
Relates to #10646 .
2023-12-13 07:32:00 +10:00
Shlomo Markowitz
f9c7df49c8
Add support for modifying default page listing ordering
2023-12-07 06:50:38 +10:00
Sage Abdullah
b4881cad64
Move SnippetViewSet.get_edit_handler() to ModelViewSet
...
However, keep the logic for falling back to extracting panel definitions
from the model class as snippets-specific. ModelViewSets are likely used
with models that are more low-level and thus we want developers to
explicitly define the fields that are editable in the admin, just like
how Django's ModelForm works.
2023-11-28 09:26:33 +00:00
Damilola Oladele
7e774971fa
Documentation: GSoD - A complete tutorial on how to build your Portfolio site with Wagtail ( #11217 )
...
Co-authored-by: Meagen Voss <45881480+vossisboss@users.noreply.github.com>
2023-11-17 16:39:37 +00:00
LB Johnston
2e2e8f4452
Minor documentation formatting (Prettier)
2023-11-13 09:53:38 +11:00
Neeraj P Yetheendran
8932c67270
Add full set of Documents app features
...
- Added customizing document upload form subsection in documents section
- Added storing and serving subpage
- Added overview section, including RichText and StreamField usage
- Closes #2001
2023-11-13 09:53:16 +11:00
Temidayo32
9349e2ad9f
Allow UniqueConstraint in place of unique_together for TranslatableMixin's system check
2023-11-10 17:29:26 +00:00
Matt Westcott
c49ec1bb06
Remove use_json_field parameter from StreamField
2023-11-01 16:52:20 +00:00
Matt Westcott
c363f6dd27
Remove ModelAdmin
2023-11-01 16:52:20 +00:00
Matt Westcott
d3fb0ab358
Remove insert_editor_css hook
2023-11-01 16:52:20 +00:00
Matt Westcott
aae3ce1c84
Remove docs mentioning legacy moderation
2023-11-01 16:51:25 +00:00
Matt Westcott
12924a5a2d
Remove docs for WAGTAIL_MODERATION_ENABLED
2023-11-01 16:51:25 +00:00
Matt Westcott
ab86351a8d
Remove legacy moderation system
2023-11-01 16:51:25 +00:00
Matt Westcott
cdac7dc7f5
Remove permission_type field from GroupPagePermission
2023-11-01 15:18:41 +00:00
Matt Westcott
55a48a212c
Remove UserPagePermissionsProxy from action_menu and wagtailadmin_tags
2023-11-01 15:00:42 +00:00
Thibaud Colas
567e84b4ea
Update image documentation to have more details for picture and srcset_image tags ( #11167 )
2023-11-01 12:11:46 +00:00
Sage Abdullah
0a11a3452b
Update modeladmin deprecation and migration notes to also mention ModelViewSet
2023-10-31 17:25:21 +00:00
Sage Abdullah
27f72ff935
Improve linking in existing viewsets docs
2023-10-31 17:25:21 +00:00
Sage Abdullah
27515fb11c
Move SnippetViewSet.ordering doc to ModelViewSet
2023-10-31 17:25:21 +00:00
Sage Abdullah
b258b99c86
Improve linking between viewset reference and extending docs
2023-10-31 17:25:21 +00:00
Sage Abdullah
622b71654c
Document `register_admin_viewset` hook
2023-10-31 17:25:21 +00:00
Vedant Pandey
837d733097
Add search_index option to control search indexing of StreamField blocks ( #11135 )
2023-10-31 11:42:16 +00:00
LB Johnston
c13edd0e42
InlinePanel DOM events - add versionadded admonition
2023-10-24 18:36:37 +11:00
Matt Westcott
aea258248c
Remove versionadded / versionchanged annotations for 5.1
2023-10-20 14:47:53 +01:00
Ihedioha Chinedu Innocent
26a89cf37d
Updated FieldPanel to TitleFieldPanel in docs
...
- Closes #11078
2023-10-19 22:36:15 +11:00
Neeraj P Yetheendran
7239e11e0c
Avoid purging Revisions in use by third-party packages ( #10961 )
...
* Resolves #10678 Avoid purging Revisions in use by third-party packages
---------
Co-authored-by: MeghanaNalla <123588774+MeghanaNalla@users.noreply.github.com>
Co-authored-by: sage <laymonage@gmail.com>
Co-authored-by: Storm B. Heg <storm@stormbase.digital>
2023-10-19 12:52:29 +02:00
LB Johnston
8002e75775
Documentation - Add initial Stimulus docs
...
- Move extending React to new extending client-side page within advanced topics
- Add general extending JavaScript / client-side overview
- Prepare initial Stimulus usage documentation
- Resolves #10197
- Apply suggestions from code review - Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2023-10-19 07:28:27 +01:00
Matt Westcott
8079cad7df
Add a view_name argument to register_page_header_buttons
2023-10-17 17:28:08 +01:00
Matt Westcott
3d8e6824a8
Change register_page_header_buttons hook to pass a user argument instead of page_perms
2023-10-17 17:28:08 +01:00
Matt Westcott
1cb180c11a
Change ButtonWithDropdownFromHook and its hooks (including register_page_listing_more_buttons) to accept a user argument instead of page_perms
2023-10-17 17:28:08 +01:00
Matt Westcott
54647bda2c
Move construct_page_listing_buttons hook docs into the 'Page explorer' section
2023-10-17 17:28:08 +01:00
Matt Westcott
0ae8d5fc8c
Change construct_page_listing_buttons hook to pass a user argument instead of page_perms
2023-10-17 17:28:06 +01:00
Matt Westcott
761ccfc215
Change register_page_listing_buttons hook to pass a user argument instead of page_perms
2023-10-17 17:26:39 +01:00
Thibaud Colas
4bfbbae405
Add picture tag implementation and tests
2023-10-17 16:09:06 +01:00
Paarth Agarwal
41dac89e1d
Add srcset_image tag for responsive images
2023-10-17 16:09:06 +01:00
faishalmanzar
e9d88528e7
Added JS Events for Inline panel added/removed
...
- Added docs for InlinePanel JS events
- Added w-formset:ready w-formset:added & w-formset:removed events and expanded test suite
- Fixes #9105
2023-10-17 11:53:16 +11:00
Sage Abdullah
aee4f42a7d
Add tests and docs for inspect view in ModelViewSet
2023-10-09 19:01:54 +01:00
LB Johnston
1c4e69dbce
Add better docs & cross-linking for how PanelGroup permission kwarg works
...
Adds more details on how to use the feature added in #8846
2023-10-09 22:50:11 +11:00
LB Johnston
ee533ac1a7
Remove deprecated search_garbage_collect
...
Wagtail 5.0 advised that this old command should no longer be used.
https://docs.wagtail.org/en/stable/releases/5.0.html#managing-stored-search-queries
However, it was not fully removed from the documentation or the code.
2023-10-09 20:56:09 +11:00
Sage Abdullah
065fab50a3
Deprecate submitted_revisions manager and save_revision's submitted_for_moderation kwarg
2023-10-05 10:35:27 +01:00
Sage Abdullah
5f70ebeaa1
Deprecate Revision.approve_moderation() and Revision.reject_moderation()
2023-10-05 10:18:48 +01:00
Sage Abdullah
c5caec6345
Deprecate WAGTAIL_MODERATION_ENABLED setting in favour of WAGTAIL_WORKFLOW_ENABLED
...
The latter came later in #7218 , but existing parts that still use
the old setting were not migrated to use the new setting
2023-10-05 10:18:48 +01:00
Sage Abdullah
97052d2e46
Add docs for context argument removal from construct_snippet_listing_buttons
2023-10-04 11:31:46 +01:00
Sage Abdullah
4593eabff8
Add usage view to ModelViewSet
...
- Move permission_required from snippets' UsageView to generic UsageView
- Fix breadcrumbs item missing capfirst()
- Move usage view config in SnippetViewSet to ModelViewSet
2023-10-04 11:20:30 +01:00
Sage Abdullah
bc2004cf7b
Add history view to ModelViewSet
2023-10-04 10:42:00 +01:00
LB Johnston
76a0c4968a
Adopt `classname` instead of `classnames` in all MenuItem/Sidebar usage
...
- Adds a deprecation path, including documentation to further remove unpredictable naming of adding `classname` in Python APIs
- Intentionally keeps `classNames` in Telepath adaptor inner usage as this convention is not set, however, the server side value passed in will use `classname`
- See https://docs.wagtail.org/en/stable/contributing/general_guidelines.html#use-classname-in-python-html-template-tag-variables
- See #9769 & #9770
2023-10-04 08:05:52 +11:00
TopDevPros
3a5cc8e75c
Search Promotions - Add support for external link/text
...
Closes #10725
Built on original PR #4560
2023-09-26 13:44:09 +10:00
LB Johnston
6bcc66c1e0
Docs - use `subclass` not `sub-class`
...
- All other usage of this does not have the hyphen
2023-09-21 08:15:57 +10:00
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