Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Enable control over header and footer backend preview #295

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nhovratov
Copy link
Contributor

This patch adds the possibility to override the standard header and footer of Content Element previews. Before it was only possible to add a preview for the content area.

For this to work, a new layout "Preview" has been added, which all previews should include. This layout renders three sections: Header, Content and Footer. One may implement any of these sections. Omitting a section will result to a fallback to the default preview
rendering of TYPO3. It is possible to effectively
disable a preview section, by rendering an empty preview.

The old preview without a layout still works, but is now deprecated and will log a deprecation level log entry. Users are advised to migrate now.

@todo

  • Adjust documentation
  • Adjust kickstart backend-preview
  • Document deprecation and migration

Fixes: #275

This patch adds the possibility to override the standard
header and footer of Content Element previews. Before it
was only possible to add a preview for the content area.

For this to work, a new layout "Preview" has been added,
which all previews should include. This layout renders
three sections: Header, Content and Footer. One may
implement any of these sections. Omitting a section
will result to a fallback to the default preview
rendering of TYPO3. It is possible to effectively
disable a preview section, by rendering an empty preview.

The old preview without a layout still works, but is
now deprecated and will log a deprecation level log
entry. Users are advised to migrate now.

@todo
- Adjust documentation
- Adjust kickstart backend-preview
- Document deprecation and migration

Fixes: #275
@nhovratov nhovratov marked this pull request as draft November 17, 2024 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Allow to change preview header and footer
1 participant