Scenario: A menu with a "News" link to news.php. This link is wrapped in some HTML. What I'd like is: to not print the HTML/News-link if there is are no news-tems or only unpublished news-items.
If using the official menus, no way without modifiying. If a custom (static) menu try `getNumNews()`. It uses the class method getArticles/getCombiNews internally so it should not return unpublished items unless - as alway - loggedin with the appropiate rights.
Comments
`if(getNumNews(true) > 0) {....}`
btw, in zpArdoise, I only use
`if (getNumNews() > 0) {...}`