[TYPO3-ttnews] Hide plugin when there are no news
Unai Aizpurua
unai at alambre.net
Tue Jan 2 11:39:37 CET 2007
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!!
Paolo Nugnes wrote:
> Hi all,
>
> I got an instance of tt_news in Latest view in a site i'm developing.
>
> The message "no news in this list" that appears if there are no news
> to show is really boring, if it is shown in the menu sidebar, so i
> tried to remove it by using the way described in the manual:
>
> plugin.tt_news._LOCAL_LANG.default.noNewsIdMsg =
>
> Well, it didn't work.
>
> Then I tried to use the tip by Rupi in this newsgroup:
> plugin.tt_news {
> _LOCAL_LANG.default{
> noNewsToListMsg =
> }
> }
>
> It didn't work, too.
>
> Any of you has got tips on removing that message in Latest view?
>
> (Yes, i already tried "noNewsToLatestMsg". Even it didn't work.. ;)
>
> Thanks everybody
> Paolo Nugnes
More information about the TYPO3-project-tt-news
mailing list