koninklijke-collective / koning-comments
TYPO3 扩展:基于 fe_users 的评论系统
2.0.1
2020-05-07 08:06 UTC
Requires
- typo3/cms-core: >=9.5.0 <10.0.0
Replaces
- typo3-ter/koning-comments: 2.0.1
This package is auto-updated.
Last update: 2024-09-07 17:47:33 UTC
README
- 描述:提供用于扩展的评论小部件。
- 扩展键:koning_comments
安装
从 TER 安装扩展并包含 Koning Comments
静态模板。
使用
在 Fluid 模板中使用:<c:widget.comments />
选项
- url:链接到当前页面(如果为空,则根据 TSFE->id 构建URL。如果在一个带有 URL 参数的扩展页面上使用,请使用此参数)
- enableCommenting:使用此选项使评论为只读(将显示以前的评论,但没有发布新评论的选项)
- sort:排序(
ASC
或DESC
)
带有 URL 的示例
<c:widget.comments url="{f:uri.action(action: 'detail', arguments: '{identifier: \'{item.uid}\'}', absolute: 1)}" />
配置
plugin.tx_koningcomments.settings.enableModeration
(默认 0
):启用时,评论将作为 hidden
创建。
信号
KoninklijkeCollective\KoningComments\ViewHelpers\Widget\Controller\CommentsController
:afterCommentCreated
:您可以使用此信号在创建评论后发送电子邮件或其他类型的通知。