latestpages.rst 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. Latest Pages Block
  2. ==================
  3. Creates a list of the most recently published pages with a specified length.
  4. Field Reference
  5. ---------------
  6. Fields and purposes:
  7. * **Parent Page** - Shows a preview of pages that are children of the selected page. Uses ordering specified in the page’s LAYOUT tab.
  8. * **Classified By** - Filters which pages are displayed by the classifier that you selected.
  9. * **Number of Pages to Show** - Limits how many pages are displayed to the number that you selected.
  10. Each page is rendered using the page model's "miniview" template.
  11. 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>`_.
  12. .. figure:: img/latestpages1.png
  13. :alt: The Latest Pages block and its settings.
  14. The Latest Pages block and its settings.
  15. .. figure:: img/latestpages2.png
  16. :alt: The Latest Pages block as displayed on the website.
  17. The Latest Pages block as displayed on the website.
  18. .. versionadded:: 2.1
  19. Miniview templates were added in Wagtail CRX 2.1
  20. .. deprecated:: 2.1
  21. * "Show Body Preview" field was deprecated in 2.1 and will be removed in 3.0.
  22. * The additional built-in templates under this block's **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.