[TYPO3-ttnews] Hide plugin when there are no news

Paolo Nugnes paolonu at libero.it
Mon Jan 15 19:28:05 CET 2007


Unai Aizpurua ha scritto:
> Hi All,
> 
> I have this headache in mind a very long time.
> Now to hide empty news I do this thing, hopes someone find it interesting.
> 
> plugin.tt_news {
>  _LOCAL_LANG.default{
>    noNewsToListMsg = <div class="hide_news">&nbsp;</div>
>  }
> }
> 
> And add a CSS style
> 
> .hide_news{
>    display:none;
> }
> 
> 
> So instead the tipical msg, anything appears.
> Yes, probably is not too academic, but at least there no a msg in the 
> screen.
> 
> Sorry for my poor english, and happy new year to everybody!!

Correction!
Your workaround worked fine! I just didn't find the right place to put 
it at the first, second or third shot... ;)

This was the working 4th:

lib.subMenu.30 < plugin.tt_news
lib.subMenu.30 {
	noNewsToListMsg_stdWrap.wrap = <div class="hide_news">|</div>
}

Thx a lot
Paolo Nugnes


More information about the TYPO3-project-tt-news mailing list