[TYPO3-english] Conditional news display by Typoscript

Ahmed Moosavi r.mesbah at gmail.com
Thu Nov 12 13:45:41 CET 2009


Hello,
I've done the above instructions, But the "red div" is still remains 
when there is not any news in the source page (4). Would you please 
check is it correct ?

Regards
Ahmed



JoH asenau wrote:
>> breakingnews.html : (I use it by a jQuery ticker that works by <li>
>> tag)
>>
>>
>> <!-- ###TEMPLATE_LIST### begin -->
>> <div id="breakingnews">
>> <ul>
>> <!-- ###CONTENT### begin-->
>> <!-- ###NEWS### begin -->
>> <li> ###NEWS_TITLE### </li>
>> <!-- ###NEWS### end-->
>> <!-- ###CONTENT###  end -->
>> </ul>
>> </div>
>> <!-- ###TEMPLATE_LIST### end -->
> 
> So the "red div" is in your Template?
> You should remove it and use a TS wrap instead:
> 
> tmp.brknews = COA
> tmp.brknews {
>     stdWrap.wrap = <div id="breakingnews">|</div>
>     stdWrap.required = 1
>     10 < plugin.tt_news
>     10 {
>         # your code here
>     }
> }
> 
> The required switch will empty the COA when there is no content in 10.
> 
> IMHO the rest can stay as is
> 
> HTH
> 
> Joey
> 


More information about the TYPO3-english mailing list