Issue Feature Closed

#78450Introduce PreviewRenderer pattern

Claus Due 10/26/16, 17:22 updated 02/27/20, 12:41

Description

A pattern should be introduced which replaces the old and somewhat messy (content) preview rendering hooks with a strategy that works not only for content and has increased capability to add things like wrapping. The current preview rendering can be moved to a standard implementation.

After this is done, the following should be considered:

  • Deprecation of content preview hooks (schedule for complete removal)
  • Extraction of fluid based preview rendering to a separate PreviewRenderer which can be reused and configured not only using pageTSconfig

The registration of PreviewRenderer should be performed in TCA and done in a way that allows one PreviewRenderer per CType and “record type”. And by creating a custom PreviewRendererResolver implementation it becomes possible to dynamically return renderer based on other record/table parameters.

Reviews 4