[TYPO3-dev] comments: show header only if comments allowed
Steffen Gebert
steffen at steffen-gebert.de
Mon Jan 12 08:57:54 CET 2009
Steffen Kamper wrote:
>>
>> thanks. Can you give me more hints? I've inserted comments via
>> Templavoila.
>>
> lib.comments = COA
> lib.comments {
> 10 < plugin.tx_comments_pi1
> 10.stdWrap.if.isFalse.cObject = TEXT
> 10.stdWrap.if.isFalse.cObject.value = <h2>no comments</h2>
> }
Hi Steffen,
thanks for your reply and sorry for bothering you again.
I insert comments as a normale page content, not directly in the mapping via Typoscript Object Path (as far as I remember it's called so).
Maybe I could change this and set lib.comments only on news-detail pages and so insert comments.
Furthermore I think plugin.tx_comments_pi1 doesn't "return false" as it still outputs the following code:
<div class="tx-comments-pi1">
<a name="tx-comments-comments-18692"/>
<div class="tx-comments-comments">
<div class="tx-pagebrowse-pi1"> </div>
</div>
</div>
But I will give your code a try later this day.
Thanks so far!
Steffen
More information about the TYPO3-dev
mailing list