Wykres commitów

40 Commity (main)

Autor SHA1 Wiadomość Data
Sage Abdullah 9c4630b5aa Document WorkflowMixin._workflow_states and its difference with workflow_states 2025-05-07 14:49:20 +01:00
Sage Abdullah 69940fc94a Document RevisionMixin._revisions and its difference with revisions 2025-05-07 14:47:32 +01:00
Andy Chosak b376a7b65d
Don't duplicate snippets in "Snippets" menu
This change alters the behavior of the sidebar "Snippets" menu such that
the snippet index view doesn't include snippet models that have been
configured with their own menu item.

Currently, the "Snippets" menu doesn't appear if all snippet models have
their own menu items; however, if some models do and some don't, the
snippets index view lists all of them, causing some duplication in the
UI which could be confusing for editors.

This commit changes this behavior so that "Snippets" is only used to
edit those snippet models that aren't editable elsewhere.

A new setting (WAGTAILSNIPPETS_MENU_SHOW_ALL) has been added to always
show the snippets menu and all snippets models. This setting will allow
for continuation of the current behavior for those users that desire it.

Closes issue 11340.
2025-04-17 14:31:31 +01:00
Drikus Roor 6aa4647120 docs: Clarify file location, add missing imports 2024-09-28 17:45:32 +10:00
Matt Westcott a7d72f9fbf Fix formatting errors 2024-07-19 00:21:39 +01:00
Himanshu Garg e02ca6ce62 fixes some of errors by removing directives 2024-07-18 23:13:26 +01:00
Sage Abdullah fd659ae767
Remove versionadded / versionchanged annotations for 6.0 2024-04-22 09:00:36 +07:00
Buraah bfa29201c3 Docs - Page names & reference section - Update British spelling to American
- Changed all British spellings to American spellings, in the Customizing admin templates section of the docs
- Transferred all British spellings in the usage guide and advanced topics section to American spellings
- Update a series of other pages to use the spelling cutomize in the file name
Implemented all feedbacks on the usage guide and advanced topics section
2024-02-12 08:44:19 +10:00
Buraah 56335de636 Update documentation globally to use US spelling (not UK) + grammar fixes
- Transferred all British spellings in the usage guide and advanced topics section to American spellings
2024-01-30 07:30:57 +10:00
LB Johnston b81f369498 6.0 release - Add versionadded sections & release notes links 2024-01-24 13:54:48 +00:00
Shlomo Markowitz 7f6a2623d1 Add ability to use copy view for SnippetViewSet & ModelViewSet
Closes #10921
2024-01-24 22:47:34 +10:00
Neeraj P Yetheendran 7fa335c20d Update Django intersphinx references to new format 2024-01-21 10:09:21 +10:00
Matt Westcott b4e7bae07b Mention inheriting from ClusterableModel in the text too 2023-12-15 15:44:28 +00:00
Matt Westcott fda09613a9 Add missing ClusterableModel import to snippet InlinePanel example 2023-12-15 15:44:28 +00:00
Sage Abdullah 31ed0f1707 Make recommendations to add GenericRelation in snippets more explicit 2023-12-06 07:39:43 +10:00
LB Johnston 2e2e8f4452 Minor documentation formatting (Prettier) 2023-11-13 09:53:38 +11:00
Sage Abdullah 31334f212f Refer to ModelViewSet docs for similar SnippetViewSet customisations 2023-10-31 17:25:21 +00:00
Sage Abdullah c7d4526826 Shorten links in snippet views customisation docs by setting currentmodule 2023-10-31 17:25:21 +00:00
Matt Westcott aea258248c Remove versionadded / versionchanged annotations for 5.1 2023-10-20 14:47:53 +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 cd222898fd
Move SnippetViewSet.list_diplay definition to ModelViewSet 2023-08-22 16:34:51 +01:00
Sage Abdullah fad37fd232
Add docs for migrating from modeladmin to snippets 2023-07-26 16:04:35 +01:00
Sage Abdullah 64f496a2e1 Remove old versionadded / versionchanged notes 2023-07-19 17:53:26 +10:00
Sage Abdullah 0bebe532e8 Add docs and tests for snippets inspect view 2023-07-17 17:19:11 +01: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
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
Vitaly Babiy 1042568e5c
Documentation - Fix mMissing Menu Prefix in example (#10599) 2023-06-27 07:53:52 +10:00
LB Johnston 5292f7dc1f Docs - fix whitespace formatting (Prettier) 2023-05-30 07:25:21 +10:00
Sage Abdullah f005990b4a Apply suggestions from code review 2023-05-24 11:06:00 +01:00
Sage Abdullah 9107fdd8aa Add documentation for using inline models with snippets 2023-05-24 11:06:00 +01:00
Sage Abdullah 4d49ebe061 Clarify that TaggableManager should only be used if RevisionMixin is not applied 2023-05-24 11:06:00 +01:00
Sage Abdullah f2accc89e3 Add link to snippets icon customisation from icons documentation 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
Sage Abdullah 88c6cfcba6 Restructure snippets customisation example to show the viewset before explaining the attributes 2023-05-24 11:06:00 +01:00
Sage Abdullah d2c33b7513 Add intro paragraphs for rendering snippets and optional features 2023-05-24 11:06:00 +01:00
Sage Abdullah 8f9c908af7 Explicitly recommend using register_snippet as a function 2023-05-24 11:06:00 +01:00
Sage Abdullah fb734e9184 Split snippets documentation into separate pages 2023-05-24 11:06:00 +01:00
Sage Abdullah 939b14b33c Move snippets.md docs to its own directory 2023-05-24 11:06:00 +01:00