Show message when there are no articles with this tag

Hi,

i have some urls like this:
http://example.com/article/tag:one
http://example.com/article/tag:two

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!

René