I am trying to write a conditional statement within the template code that will output different html if no category is selected. I can’t figure out how to write a conditional statement to see if no categories are selected.
For example, I’m trying to accomplish something like this:
{if categories}
{categories limit="1"}
{category_name}
{/categories}
{if:else}
Event
{/if}
If a category has been sent it will display the category name, if not it will simply display “Event.” Is this something I can accomplish in the templating system, or am I going to have to use inline php?