Is there a way to display a fallback snippet if a {categories show_group='xy'}-Tag is empty / a entry does not have a category?
The example…
<p>Category: {categories show_group='xy' backspace='2'}<a href='#'>{category_name}</a>, {/categories}</p>
… shows …
Category:
… if there is no linked category for this entry in this category-group. Is there a way to do something like:
Category: No categories assigned
… or hide «Category: » in the first place with a conditional or something simpler than this kind-of-complicated stuff:
{categories show_group='xy' limit='1'}<p>Category: {/categories}{categories show_group='xy' backspace='2'}<a href='#'>{category_name}</a>, {/categories}</p>{categories show_group='xy' limit='1'}</p>{/categories}