2
0

v2.1.0.rst 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. v2.1.0 release notes
  2. ====================
  3. New features
  4. ------------
  5. * New snippet and block: :doc:`/features/snippets/filmstrip`.
  6. * New system-wide feature: :doc:`/features/related_pages`.
  7. * 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:
  8. * :doc:`/features/related_pages`
  9. * :doc:`/features/blocks/contentblocks/pagepreview`
  10. * :doc:`/features/blocks/contentblocks/latestpages`
  11. Upgrade considerations
  12. ----------------------
  13. 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.
  14. The new related pages feature is on by default for any newly created pages based on ``CoderedArticlePage``.
  15. * If you do not want this feature, disable it by setting ``related_show_default=False`` on your Article model.
  16. * If you want this feature retroactively on existing pages, write a simple query or migration to turn it on for those pages:
  17. .. code-block:: python
  18. # To enable related pages on just Article pages:
  19. from website.models import ArticlePage
  20. ArticlePage.objects.all().update(related_show=True)
  21. # To enable related pages on all pages of the site:
  22. from coderedcms.models import CoderedPage
  23. CoderedPage.objects.all().update(related_show=True)
  24. As always, be sure to make and apply migrations after upgrading:
  25. .. code-block:: text
  26. python manage.py makemigrations
  27. python manage.py migrate
  28. Thank you!
  29. ----------
  30. Thanks to everyone who contributed to `2.1.0 on GitHub <https://github.com/coderedcorp/coderedcms/milestone/46?closed=1>`_.