I’m using EE 2 and I’m very new.
I don’t want to display a list unless I have entries since I’d have invalid html:
<ul>
{exp:channel:entries channel="test"}
<li>{title}</li>
{/exp:channel:entries}
</ul>I can’t nest EE tags like this:
{exp:channel:entries channel="test"}
{if no_results}
<!-- Is there no opposite of no_results? -->
{if:else}
<ul>
{exp:channel:entries channel="test"}
<li>{title}</li>
{/exp:channel:entries}
</ul>
{/if}
{/exp:channel:entries}Using PHP, I’d either do a count() query before getting the entries, or I’d get the entries first, and only if some entries existed would I print the list.