tx_news 带有 pw_comment 插件错误 3
tx_news with pw_comment plugin typo3
我需要建立一个带有评论选项的新闻详情页面。当转到详细信息页面时,必须有一个评论选项。所以我配置 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>
您需要在某处设置一个条件,以便只显示每个新闻的相关评论,而不是所有新闻系统。
最好是用 TypoScript 向他们展示,然后为某些新闻设定一个不显示的条件。
我得到了 problem.I 编辑打字错误的解决方案。
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]
我需要建立一个带有评论选项的新闻详情页面。当转到详细信息页面时,必须有一个评论选项。所以我配置 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>
您需要在某处设置一个条件,以便只显示每个新闻的相关评论,而不是所有新闻系统。
最好是用 TypoScript 向他们展示,然后为某些新闻设定一个不显示的条件。
我得到了 problem.I 编辑打字错误的解决方案。
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]