pagepreview.rst 763 B

1234567891011121314151617181920212223
  1. Page Preview Block
  2. ==================
  3. Shows a miniview (a condensed version) of a selected Page.
  4. Field Reference
  5. ---------------
  6. There is only one field.
  7. **Page to Preview** - Select the page that you want to display a preview
  8. .. figure:: img/pagepreview_edit.png
  9. :alt: A Page Preview block and its settings.
  10. A Page Preview block and its settings.
  11. The selected page is rendered using the page model's "miniview" template.
  12. 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>`_.
  13. .. versionadded:: 2.1
  14. Miniview templates were added in Wagtail CRX 2.1