Configuring the Talk Comment Stream
Using plugins and configuration variables, you can modify the way the Talk comment stream behaves. Here are some common configuration options:
To enable our default rich text editor plugin, you’ll need to:
talk-plugin-rich-textas a server-side plugin
talk-plugin-rich-text-pellas a client-side plugin
- If you have
talk-plugin-comment-contentenabled, you will need to disable this (this supports hyperlinks in the comment body)
Out of the box, our Talk Editor supports Bold, Italic, and Blockquote.
If you want to support another editor, you can create a plugin and replace the client-side one with the editor of your choice.
For more information on our implementation, see https://github.com/coralproject/talk/pull/1391
For more information on Pell, check out https://jaredreich.com/pell
To enable sorting and filtering plugins, you will first need to enable the viewing options plugin:
Then you can enable these sorting options:
And/or this filtering option:
You can customize the way timestamps display to commenters on both the comment stream and their My Profile tab. The default display is via relative timestamps, e.g. “2 minutes ago”, “20 days ago”, “3 months ago”.
Customizing this will require creating a plugin that leverages the two plugin slots
historyCommentTimestamp to replace this with a custom component.
For more information, please see https://github.com/coralproject/talk/pull/979.
The comment author menu can house plugins related to the comment author. We have recipes for showing the commenter’s “member since” date, and to show a subscriber badge. These will require some integration on your side to connect them to the data source that houses this information.
To get started, check out our Talk Recipes: https://github.com/coralproject/talk-recipes
To enable the ignore user functionality, you will need to enable a few things.
First, you’ll enable
talk-plugin-author-menu, as this houses the Ignore button.
And then we will enable the Ignore User plugin:
And finally, we will need to enable Profile Settings; this is the tab on My Profile > Settings where commenters can manage their Ignored Users list.
To enable the featuring of comments, you’ll need to activate
talk-plugin-featured-comments. If you would like the Featured Comments tab to be the default tab you land on for the stream, you will need to set the default tab ENV variable:
Talk supports a myriad of commenter reactions, such as:
If you want to build your own reaction plugin, check out our Plugins docs and tutorials.