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

Steffen Müller typo3 at t3node.com
Tue Jan 13 12:24:12 CET 2009


On 12.01.2009 18:31 Peter Russ wrote:
> --- Original Nachricht ---
> Absender:   Steffen Müller
> Datum:       12.01.2009 16:24:
>> On 12.01.2009 11:31 Peter Russ wrote:
>>> Good idea, but would require to touch every extension :-(
>>> So best place to do the check and do the wrapping would be in
>>> pi_wrapInBaseClass. And you could just configure it in TS as this->conf
>>> should be available in most extensions.
>>>
>>
>> You're right.
>>
>> What about the precedence?
>> Should baseWrap overrule the empty content?
>>
>>  baseWrap > empty $content > <div class="tx_extension_pi1">|<div>
>> or
>>  empty $content > baseWrap > <div class="tx_extension_pi1">|<div>
>>
>>
>>
> 
> jm2c:
> 2 new general install:
> $TYPO3_CONF_VARS['FE']['disableWrapEmptyContent']
> $TYPO3_CONF_VARS['FE']['disableWrapInDefaultBaseClass']
> For compatibility reason I would check the 'disabled' version of these
> parameters, i.e. if they are not set behaviour should work as without
> the patch.
> 

I don't like to handle this on a global scope.
TS would make it more flexible. See my patch in #10118

-- 
cheers,
Steffen

http://www.t3node.com/




More information about the TYPO3-dev mailing list