v4.0.0.rst 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. v4.0.0 release notes
  2. ====================
  3. New features
  4. ------------
  5. * Support Wagtail 6.0 and 6.1.
  6. * Support Python 3.8 to 3.12.
  7. * Update Bootstrap to 5.3.3
  8. * New: Ability to disable built-in Navbar, Footer, Analytics Settings, and CRX Settings. See :doc:`/reference/django_settings`.
  9. * New: enhancements to ``pro`` project template:
  10. * Includes new custom Navbar and Footer snippets. Built-in CRX Navbar and Footer are disabled. This is the recommended approach as it will be much more customizable for professional website builds.
  11. * Fix missing Filmstrip sass module.
  12. * Improvements to rich text rendering:
  13. * Left and right image positions now have a max-width of 40%. This makes the images look more natural when laid out on the page.
  14. * Full-width images will use the full size of the image, centered, rather than forcing the image to 100% width. This looks much more natural for small images or icons.
  15. * Headings will now break to a new line below a left or right aligned image. This is a more expected behavior.
  16. * These are all CSS-only changes, and therefore can be easily overridden as needed.
  17. * Improve rendering of search form. Removed the green check icon, which is unexpected on a single-field form.
  18. Bug fixes
  19. ---------
  20. * Fix template error (Server 500 error) when a page is deleted which is referenced in a Page Preview block.
  21. Maintenance
  22. -----------
  23. * Ruff is now used for formatting and linting in place of black and flake8.
  24. Upgrade considerations
  25. ----------------------
  26. After upgrading, be sure to generate and apply new migrations as so:
  27. .. code-block::
  28. python manage.py makemigrations
  29. python manage.py migrate
  30. Be sure to also review the API changes below, and the `Wagtail 6 upgrade considerations <https://docs.wagtail.org/en/stable/releases/6.0.html#upgrade-considerations-removal-of-deprecated-features-from-wagtail-4-2-5-1>`_.
  31. Theme dropdown removed
  32. ~~~~~~~~~~~~~~~~~~~~~~
  33. **Theme** dropdown has been removed from **Settings > CRX Settings**. If you were using it, you can manually add a Bootswatch theme by adding/editing the following to: ``website/templates/coderedcms/pages/base.html``:
  34. .. code-block:: django
  35. {% block frontend_assets %}
  36. <link rel="stylesheet" href="your bootswatch theme here">
  37. {% endblock %}
  38. The appropriate href for the ``<link>`` tag can be found here: https://cdnjs.com/libraries/bootswatch
  39. Template tag changes
  40. ~~~~~~~~~~~~~~~~~~~~
  41. ``crx_settings`` and ``django_settings`` filters have been removed (these were identical functions). They have been replaced with a more useful template tag ``django_setting``. Find and replace them in your templates.
  42. Before (with the example ``TIME_ZONE`` setting):
  43. .. code-block:: django
  44. <span>{{ "TIME_ZONE"|crx_settings }}</span>
  45. <span>{{ "TIME_ZONE"|django_settings }}</span>
  46. After:
  47. .. code-block:: django
  48. {% django_setting "TIME_ZONE" as time_zone %}
  49. <span>{{ time_zone }}</span>
  50. Block changes
  51. ~~~~~~~~~~~~~
  52. * ``button_title`` has been moved from ``ButtonMixin`` to ``BaseLinkBlock``. In practice, these two are used together and this change has no effect.
  53. * ``get_title`` utility function added to ``LinkStructValue``. This will generate a title based on ``button_title``, page title, or document title.
  54. These two changes provide great utility to the new custom Navbar in the ``pro`` template.
  55. Thank you!
  56. ----------
  57. Thanks to everyone who contributed to `4.0.0 on GitHub <https://github.com/coderedcorp/coderedcms/milestone/54?closed=1>`_.