In the margin of my blog, I list featured articles. This is the code.
My problem: I don´t always have stuff to feature. When the channel entries tag is empty a grey box with the title Featured is left over. I dont want to use a conditional, that says
"if no entry, then print "Nothing to feature yet"."
I want to get rid of the entire box. How can i do this?
<div class="panel">
<h5>Featured</h5>
{exp:channel:entries channel="blog" limit="2" status="featured"}
<p><a href="{url_title_path='eintrag/index'}">{title}</a></p>
{/exp:channel:entries}
</div>