[TYPO3-english] Conditional news display by Typoscript

Ahmed Moosavi r.mesbah at gmail.com
Sat Nov 14 14:17:48 CET 2009


Hello,
Thank you very much. Finally it worked , I had an addition <div> in main 
template. Excuse me for causing inconvenience.

Best Regards
Ahmed

JoH asenau wrote:
>>> Can you post the current TS code please?
>> This is the TS code I'm using it :
>>
>> tmp.brknews = COA
>> tmp.brknews {
>>      stdWrap.wrap = <div id="breakingnews">|</div>
>>      stdWrap.required = 1
>>      10 < plugin.tt_news
>>      10 {
>>        limit= 1
>>        code = LIST
>>        pid_list = 4
>>        templateFile = fileadmin/styles/v2/breakingnews.html
>>        singlePid = 22
>>      }
>>
>> }
> 
> Looks ok to me, so the "bug" must be in breakingnews.html
> I guess there is something in it, that always gets displayed even without
> any news items to show.
> To get rid of it you have to move all "wrapping" HTML code to the
> stdWrap.wrap section.
> 
> HTH
> 
> Joey
> 


More information about the TYPO3-english mailing list