Typo3 tx_新闻与pw_评论插件类型3

Typo3 tx_新闻与pw_评论插件类型3,typo3,fluid,extbase,tx-news,Typo3,Fluid,Extbase,Tx News,我需要建立一个带有评论选项的新闻细节页面。当转到详细信息页面时,必须有评论选项。所以我配置了pw_评论插件。很好用。但每一条新闻都有评论。如何仅显示带有相关新闻的评论?请帮帮我 我的打字稿设置是 plugin.tx_pwcomments { settings { useEntryUid = 1 entryUid = TEXT moderateNewComments = 0 secondsBetweenTwoComments

我需要建立一个带有评论选项的新闻细节页面。当转到详细信息页面时,必须有评论选项。所以我配置了pw_评论插件。很好用。但每一条新闻都有评论。如何仅显示带有相关新闻的评论?请帮帮我

我的打字稿设置是

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
plugin.tx\pwcomments{
背景{
useEntryUid=1
entryUid=TEXT
中度元素=0
两条注释之间的秒数=60
entryUid.data=GP:tx|u news | uid
replaceUsernameWith=COA\u INT
用替换用户名{
10=文本
10.data=LLL:EXT:pw_comments/Resources/Private/Language/locallang.xml:tx_pwcoments.newComment.loggedInAs
20=文本
20.data=TSFE:fe|U用户|用户|用户名
20.noTrimWrap=|||
stdWrap.wrap=|
}
replaceMailWith=文本
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>

您需要在某个地方设置一个条件,仅显示每个新闻的相关评论,而不是所有新闻系统


最好是用打字稿向他们展示,然后为某些新闻不出现创造条件。

我找到了解决问题的方法。我编辑了打字稿

plugin.tx_pwcomments {
    settings {
        moderateNewComments = 0
        secondsBetweenTwoComments = 60
        enableCommentVotes = 0
        enableVoting = 0
        hideVoteButtons = 1
        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

[globalVar = GP:tx_news_pi1|news > 0]
plugin.tx_pwcomments.settings {
  useEntryUid = 1
  entryUid = TEXT
  entryUid.data = GP:tx_news_pi1|news
}
[global]
plugin.tx\pwcomments{
背景{
中度元素=0
两条注释之间的秒数=60
EnableCommentVoces=0
enableVoting=0
hideVoteButtons=1
replaceUsernameWith=COA\u INT
用替换用户名{
10=文本
10.data=LLL:EXT:pw_comments/Resources/Private/Language/locallang.xml:tx_pwcoments.newComment.loggedInAs
20=文本
20.data=TSFE:fe|U用户|用户|用户名
20.noTrimWrap=|||
stdWrap.wrap=|
}
replaceMailWith=文本
replaceMailWith.stdWrap.char=0
}
}
config.contentObjectExceptionHandler=0
[globalVar=GP:tx_news_pi1 | news>0]
plugin.txpwcomments.settings{
useEntryUid=1
entryUid=TEXT
entryUid.data=GP:tx_news_pi1|news
}
[全球]