[TYPO3-dev] comments: show header only if comments allowed

Steffen Gebert steffen at steffen-gebert.de
Mon Jan 12 09:37:20 CET 2009


Dmitry Dulepov wrote:
>> 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>
>> }
> 
> Won't work due to "<div class="tx_comments_pi1"> </div>" produced by
> pi_wrapInBaseClass.

This is what I thought, too.
Can't we prevent this output if there's no form and no comments or is this an essential thing for you that this (and empty pagebrowse tag) are printed out even when there's no content?

Steffen




More information about the TYPO3-dev mailing list