Let's assume we create a simple Blog-Package and wanna integrate webexcess/comments in every Blog Post Node.
Add the Comments Mixins to your NodeType
Vendor.Blog/Configuration/NodeTypes.Post.yaml
'Vendor.Blog:Post':
superTypes:
// ...
'WebExcess.Comments:CommentsContentCollection': true
'WebExcess.Comments:HideFormMixin': true
// ...
Add the Comments Rendering to your Prototype
Vendor.Blog/Resources/Private/Fusion/Pages/Post.fusion
prototype(Vendor.Blog:Post) {
body.content.main {
// ...
comments = WebExcess.Comments:Content {
@process.contentElementWrapping >
content.form.@process.contentElementWrapping >
}
}
}
Make the ContentCollection available
flow node:repair --node-type Vendor.Blog:Post
Result
Now every Blog-Post contains automatically a fully working Comments-Section.