I’m using the weblog:category_archive tag to dynamically generate sub-navigation for an EE site I’m working on.
This is working great, but I only want to display this code if there are entires in the category. For example, if the category has no entires in it, this should not be displayed. I’m assuming I’ll need to wrap the below code in some sort of conditional for this, but after looking in the docs I’m just not sure how to do it.
‘if category entires > 0 display this code’ - if only it were that easy 😛
I should also mention I’m using this on static type pages, not on a blog/archive page.
<ul class="subnav-menu">
{exp:weblog:category_archive weblog="ministries" style="linear" show_empty="no" show="18" orderby="title" sort="asc"}
{entry_titles}
<li><a href="http://{path=ministries/sos}">{title}</a></li>
{/entry_titles}
{/exp:weblog:category_archive}
</ul>Any help/ideas are much appreciated!