You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/features/page_types/event_pages.rst
+11-12Lines changed: 11 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ Content Tab
31
31
Implementation
32
32
--------------
33
33
34
-
The event functionality is built-in to Wagtail CRX but it is not enabled by default.
34
+
The event functionality is built-in to Wagtail CRX which includes the ability to show events on a calendar, generate ical entries, and automatically rotate events based on next upcoming occurrences.
35
35
36
36
There are two abstract pages available when dealing with events. The first ``CoderedEventPage`` holds
37
37
the information regarding an event. Dates, location, etc. all will fall under this page. The
@@ -80,17 +80,16 @@ create the new pages in your project.
80
80
81
81
Now when going to the wagtail admin, you can create an Event Landing Page, and child Event Pages.
82
82
83
-
.. versionadded:: 0.22
83
+
.. note::
84
+
85
+
Events require timezone support to be enabled in Django. Be sure to set ``USE_TZ = True`` and ``TIME_ZONE`` in your settings.
86
+
87
+
All dates and times inputted via the Wagtail Admin, and rendered on the calendar and throughout the site, will be converted to ``TIME_ZONE`` from your Django settings.
84
88
85
-
All dates and times inputted via the Wagtail Admin, and rendered on the
86
-
calendar and throughout the site, will be converted to ``TIME_ZONE`` from
87
-
your Django settings. It is highly recommended to set ``TIME_ZONE`` and
88
-
``USE_TZ = True`` in your Django settings for the Event pages to function
89
-
correctly.
89
+
For example, if ``TIME_ZONE`` is set to ``America/New_York``, then entering an event for 2021-12-31 09:00 in the Wagtail admin will be saved as 9am New York time. It will also be displayed on the website as 9am New York time.
90
90
91
-
For example, if ``TIME_ZONE`` is set to ``America/New_York``, then entering
92
-
an event for 2021-12-31 09:00 in the Wagtail admin will be saved as 9am New
93
-
York time. It will also be displayed on the website as 9am New York time.
91
+
If you then changed ``TIME_ZONE`` to ``America/Chicago``, the event time will automatically be displayed as 8am Chicago time.
92
+
93
+
.. versionadded:: 0.22
94
94
95
-
If you then changed ``TIME_ZONE`` to ``America/Chicago``, the event time
96
-
will automatically be displayed as 8am Chicago time.
Wagtail CRX can be deployed and hosted just like any other Wagtail or Django website. Read the `Wagtail hosting guide <https://docs.wagtail.org/en/stable/deployment/index.html>`_.
5
+
6
+
CodeRed also provides `CodeRed Cloud, optimized for deploying and hosting wagtail sites <https://www.codered.cloud/docs/wagtail/quickstart/>`_, which includes both free and professional grade plans.
* Improve visual consistency of miniview and search templates, including uniform height when rendered in rows, i.e. Related Pages.
13
+
14
+
* New miniview template for Article and Event pages, which show more contextual details about each page type.
15
+
16
+
* All miniview templates now include variables ``h`` to set the heading level, and ``miniview_css_class`` to add CSS to the top level card.
17
+
18
+
* New search template for Event pages which shows more contextual details.
19
+
20
+
21
+
Bug fixes
22
+
---------
23
+
24
+
* Fix modal and download buttons by restoring ``button_title`` field on ``ButtonMixin`` (which was previously refactored in v4.0).
25
+
26
+
* Fix accessibility warnings about inconsistent heading levels of Related Pages.
27
+
28
+
* Fix visual overflow of Carousel block.
29
+
30
+
* Fix default field type on Form page fields.
31
+
32
+
33
+
Maintenance
34
+
-----------
35
+
36
+
* Update to the latest fullcalendar, icalendar, and django-bootstrap5 versions.
37
+
38
+
39
+
Upgrade considerations
40
+
----------------------
41
+
42
+
After upgrading, be sure to generate and apply new migrations as so:
43
+
44
+
.. code-block::
45
+
46
+
python manage.py makemigrations
47
+
python manage.py migrate
48
+
49
+
Template changes
50
+
~~~~~~~~~~~~~~~~
51
+
52
+
The default Article Index and Event Index page templates now use the respective miniview template to list child pages. This results in a slight visual difference.
53
+
54
+
Block changes
55
+
~~~~~~~~~~~~~
56
+
57
+
* ``button_title`` has been re-added to ``ButtonMixin``.
58
+
59
+
60
+
Thank you!
61
+
----------
62
+
63
+
Thanks to everyone who contributed to `4.1 on GitHub <https://github.com/coderedcorp/coderedcms/milestone/56?closed=1>`_.
0 commit comments