Skip to content

Commit 3482099

Browse files
committed
Add 2.1 docs, doc cleanup
1 parent e70d649 commit 3482099

7 files changed

Lines changed: 88 additions & 12 deletions

File tree

docs/features/blocks/contentblocks/latestpages.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ Fields and purposes:
1010

1111
* **Parent Page** - Shows a preview of pages that are children of the selected page. Uses ordering specified in the page’s LAYOUT tab.
1212

13-
* **Classified By** - Filters which pages are displayed by the classifier that you selected
13+
* **Classified By** - Filters which pages are displayed by the classifier that you selected.
1414

15-
* **Number of Pages to Show** - Limits how many pages are displayed to the number that you selected
15+
* **Number of Pages to Show** - Limits how many pages are displayed to the number that you selected.
1616

1717
Each page is rendered using the page model's "miniview" template.
1818
The template can be overridden per model with the ``miniview_template`` attribute, the default of which is `coderedcms/pages/page.mini.html <https://github.com/coderedcorp/coderedcms/blob/dev/coderedcms/templates/coderedcms/pages/pages.mini.html>`_.
@@ -27,6 +27,10 @@ The template can be overridden per model with the ``miniview_template`` attribut
2727

2828
The Latest Pages block as displayed on the website.
2929

30+
.. versionadded:: 2.1
31+
32+
Miniview templates were added in Wagtail CRX 2.1
33+
3034
.. deprecated:: 2.1
3135

3236
* "Show Body Preview" field was deprecated in 2.1 and will be removed in 3.0.

docs/features/blocks/contentblocks/pagepreview.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ There is only one field.
1717

1818
The selected page is rendered using the page model's "miniview" template.
1919
The template can be overridden per model with the ``miniview_template`` attribute, the default of which is `coderedcms/pages/page.mini.html <https://github.com/coderedcorp/coderedcms/blob/dev/coderedcms/templates/coderedcms/pages/pages.mini.html>`_.
20+
21+
.. versionadded:: 2.1
22+
23+
Miniview templates were added in Wagtail CRX 2.1

docs/features/related_pages.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
Related Pages
22
=============
33

4-
.. versionadded:: 2.1
5-
6-
Added related pages system. You must be on Wagtail CRX version 2.1 or higher in order to follow this guide.
7-
84
Using the power of :doc:`/features/snippets/classifiers`, pages can automatically show a list of similarly classified pages. By default, this is enabled on :doc:`/features/page_types/article_pages`, but can be enabled on any page via the Wagtail Admin, or a 1-line code change on the page model.
95

106
.. figure:: img/related_pages.png
@@ -61,3 +57,7 @@ If you'd instead prefer to totally customize the related algorithm, override the
6157
def get_related_pages(self) -> models.QuerySet:
6258
"""Show most expensive products first."""
6359
return ProductPage.objects.live().order_by("-price")
60+
61+
.. versionadded:: 2.1
62+
63+
You must be on Wagtail CRX version 2.1 or higher to use related pages.

docs/features/snippets/filmstrip.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,7 @@ To add a slide to your carousel, click the "Add Slides" button.
3232
**Custom CSS class**: If you need to add a specific CSS class for this panel, add it here.
3333
**Custom ID**: If you need to add a specific ID for this panel, add it here.
3434
**Content**: A streamfield that contains the content blocks for the panel.
35+
36+
.. versionadded:: 2.1
37+
38+
You must be on Wagtail CRX version 2.1 or higher to use Film Strips.

docs/releases/index.rst

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,26 @@ Wagtail CRX (previously CodeRed CMS) follows the
66

77
* **Major** - significant changes that may not be backwards compatible.
88

9-
* **Minor** - new features, enhancements, and bug fixes that are most likely
10-
but not guaranteed to be backwards compatible.
9+
* **Minor** - new features, enhancements, and bug fixes that are most likely but not guaranteed to be backwards compatible.
1110

12-
* **Patch** - guaranteed to be backwards compatible. These changes are
13-
reserved for bug, security, or documentation fixes only.
11+
* **Patch** - guaranteed to be backwards compatible. These changes are reserved for bug, security, or documentation fixes only.
12+
13+
Supported Versions:
14+
15+
+--------------+---------+----------+---------------------------+
16+
| CRX version | Wagtail | Python | Support Status |
17+
+==============+=========+==========+===========================+
18+
| CRX 2.x | 4.x | 3.7-3.11 | Supported |
19+
+--------------+---------+----------+---------------------------+
20+
| CRX 1.x | 3.x | 3.7-3.11 | Support contract required |
21+
+--------------+---------+----------+---------------------------+
22+
| CRX 0.25 | 2.16 | 3.7-3.10 | Support contract required |
23+
+--------------+---------+----------+---------------------------+
1424

1525
.. toctree::
1626
:maxdepth: 1
1727

28+
v2.1.0
1829
v2.0.0
1930
v1.0.3
2031
v1.0.2

docs/releases/v2.0.0.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ v2.0.0 release notes
55
New features
66
------------
77

8-
* CRX no longer pins the minor version of Wagtail. 2.x series will work with any version of Wagtail 4.
8+
* CRX no longer pins the minor version of Wagtail.
99

1010
* Support Wagtail 4.0, 4.1, and 4.2.
1111

1212

1313
Upgrade considerations
1414
----------------------
1515

16-
While there are no functional changes in CRX, there are many changes in Wagtail 4. Most CRX sites should not be impacted, however if your site implements custom functionality beyond what CRX provides, review the `Wagtail 4 release notes and upgrade considerations <https://docs.wagtail.org/en/stable/releases/4.0.html>`.
16+
While there are no functional changes in CRX, there are many changes in Wagtail 4. Most CRX sites should not be impacted, however if your site implements custom functionality beyond what CRX provides, review the `Wagtail 4 release notes and upgrade considerations <https://docs.wagtail.org/en/stable/releases/4.0.html>`_.
1717

1818
If you are upgrading from an older version of CRX (0.x series) it is highly recommended to upgrade to 1.0 before attempting to upgrade to 2.0.
1919

docs/releases/v2.1.0.rst

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
v2.1.0 release notes
2+
====================
3+
4+
5+
New features
6+
------------
7+
8+
* New snippet and block: :doc:`/features/snippets/filmstrip`.
9+
10+
* New system-wide feature: :doc:`/features/related_pages`.
11+
12+
* New template rendering option for page models, the "miniview". Instead of a full page template, this is used to render a small preview of the page in other places on the site, usually in a Bootstrap card format. The miniview template is used by:
13+
14+
* :doc:`/features/related_pages`
15+
16+
* :doc:`/features/blocks/contentblocks/pagepreview`
17+
18+
* :doc:`/features/blocks/contentblocks/latestpages`
19+
20+
21+
Upgrade considerations
22+
----------------------
23+
24+
The built-in template options under Page Preview and Latest Pages block **Advanced Settings** are deprecated as of 2.1 and will be removed in 3.0. These have been replaced with identical miniview templates for Article and Form pages. **If you have overridden these templates** it is recommended to set your custom instead on the page model's ``miniview_template`` field.
25+
26+
The new related pages feature is on by default for any newly created pages based on ``CoderedArticlePage``.
27+
28+
* If you do not want this feature, disable it by setting ``related_show_default=False`` on your Article model.
29+
30+
* If you want this feature retroactively on existing pages, write a simple query or migration to turn it on for those pages:
31+
32+
.. code-block:: python
33+
34+
# To enable related pages on just Article pages:
35+
from website.models import ArticlePage
36+
ArticlePage.objects.all().update(related_show=True)
37+
38+
# To enable related pages on all pages of the site:
39+
from coderedcms.models import CoderedPage
40+
CoderedPage.objects.all().update(related_show=True)
41+
42+
As always, be sure to make and apply migrations after upgrading:
43+
44+
.. code-block:: text
45+
46+
python manage.py makemigrations
47+
python manage.py migrate
48+
49+
50+
Thank you!
51+
----------
52+
53+
Thanks to everyone who contributed to `2.1.0 on GitHub <https://github.com/coderedcorp/coderedcms/milestone/46?closed=1>`_.

0 commit comments

Comments
 (0)