The goal is to call a static cms block at the bottom of the category page, with block identifier == category name (so that I can make a block in the admin backend for every category).
So I first thought of just adding a static cms block in the catalog_category.xml in my theme, but I think it is not possible to call the category name inside of the xml (or is it?)
Second try was to call a phtml template in the xml file. In the phtml teplate, I just call a static block with the name of the category. Unfortunately, I can't get the XML to work :/
This is what I added to MyTheme/Magento_Catalog/layout/catalog_category_view.xml
<block class="Magento\Catalog\Block\Category\View" name="category.bottom" template="Magento_Catalog::category/bottom.phtml"/>
And in the template directory under category, I added the bottom.phtml. But when I open a category now, it says "File path is forbidden for security reasons".
So I tried to just call a template that is already there (the description.phtml), but that did not work either.
Now it gets strange: I tried to override the description.phtml in my theme, just to test if I got the paths right. The result was that the description in the frontend just disappeard, no matter what I wrote in the file - even if I just copied the original file to the override file. I just can't understand why...
Can anyone help?