Whats the best way to check if a channel entry is assigned to any categories for a given category group.
I have the following set up in my template:
<dt>Category:</dt><dd>{categories show_group="5" backspace="2"}{category_name}, {/categories}</dd>However, i would like an {if} statement to check the number of categories first. If the count is 0 then i dont want to output this <dt> in my template at all. Im aware of the {total_results} variable but this seems to relate to the entry i am viewing and not the number of categories found.
Haven’t found anything in the documentation about this so far.
Thanks.