[!!!][FEATURE] Modernize metadata rendering #84
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The metadata implementation for authors, categories, tags, publish date
and comments were really hard to customize. It was used in multiple
places and was also reliant on font awesome for icons.
To provide a better out of the box experience the templates were
completely refactored and rebuilt from the ground up. A generic set was
introduced that provides a lot of flexibility without the need to touch the
templates at all. This set is now replacing all current usages of the
metadata.
The old metadata plugin will now throw a deprecation message and is
planned to be removed with Version 11. Instead of using the old one, there
are now two new plugins for post header and post footer that can be
configured individually through TypoScript constants. While the post
header plugin will also render the post title, the post footer will only render
the metadata for now. Also, the list rendering of posts has now two
dedicated sections for rendering the metadata.
Each section like authors or categories can be configured per position.
If you do not want to have a section rendered at all, you can also simply
disable it. If comments are disabled for a post, the comment section will
not be rendered.
We are now shipping 3 different layouts you can choose from that will
change the look of how the metadata will be displayed.
Simple:
Is a compact version, showing icon and value in one line.
Condensed:
In addition to the icon and value, there is now also a prefix visible.
Extended:
Prefix and value are now in separate lines.
You will find settings for this in the constant editor.
Example Configuration for the postheader position:
Templates added:
Templates changed:
Releases: master
Fixes: #19