i have some urls like this:
I used the example blog from the docs and everthing works fine,
except I do not know which PHP code to use in the template to display a message when there is no article for that specific url/tag.
I am not so familiar with PHP.
Can anybody help?
You can use an if-statement.
Let’s supposed your collection of filtered articles is called
$articles, then you can do something like this:
<?php if($articles->count() < 1): ?>
<p>Nothing for this tag</p>
<?php endif ?>
Great! It works.
Thank you for your quick response and the support, texnixe.
I appreciate it!