我需要建立一个带有评论选项的新闻详细信息页面。转到详细信息页面时,必须有一个评论选项。所以我配置了 pw_comment 插件。它工作正常。但是所有评论都与每条新闻一起显示。如何仅显示带有相关新闻的评论?请帮我
我的排版设置是
plugin.tx_pwcomments {
settings {
useEntryUid = 1
entryUid = TEXT
moderateNewComments = 0
secondsBetweenTwoComments = 60
entryUid.data = GP:tx_news|uid
replaceUsernameWith = COA_INT
replaceUsernameWith {
10 = TEXT
10.data = LLL:EXT:pw_comments/Resources/Private/Language/locallang.xml:tx_pwcomments.newComment.loggedInAs
20 = TEXT
20.data = TSFE:fe_user|user|username
20.noTrimWrap = | <b>|</b>|
stdWrap.wrap = <div class="loggedInAs">|</div>
}
replaceMailWith = TEXT
replaceMailWith.stdWrap.char = 0
}
}
config.contentObjectExceptionHandler = 0
我的模板包括以下 coe
<f:if condition="{settings.templateLayout} == 'NewsCommentLayout' ">
<f:then>
<f:cObject typoscriptObjectPath="lib.pwCommentsIndex" />
<f:cObject typoscriptObjectPath="lib.pwCommentsNew"/>
</f:then>
</f:if>