[TYPO3-ttnews] Hide plugin when there are no news
Paolo Nugnes
paolonu at libero.it
Mon Jan 15 19:07:59 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"> </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!!
>
Your english is ok, mate. ;)
Btw, it didn't work as well.
It seems like noNewsToListMsg doesn't work with LATEST elements, and
this makes me crazy...
At the endo of the day it seems i will need to hardcode it... :(
If i make good code i'll send to the list then to Rupi to include it in
a future version...
Have fun everybody!
Paolo Nugnes
More information about the TYPO3-project-tt-news
mailing list