I would like to add a CMS block to the bottom of each product list whehter it is on a category page or the search result page. Since I would like to add it on every list I'll try to do this via layout customization within default.xml
of my theme.
Unfortunatelly I'm not able to reference on the related container or block.
I'm able to add a block to the content container by using following code:
<referenceContainer name="content">
<block class="Magento\Cms\Block\Block" name="block_category_below_collection">
<arguments>
<argument name="block_id" xsi:type="string">block_category_below_collection</argument>
</arguments>
</block>
</referenceContainer>
But this show the cms_block on every page at the top, not only at th bottom of product lists. I tried other reference names like:
<referenceContainer name="category.products.list">
<referenceBlock name="category.products.list">
But I'm not sure which is the correct one and I'm not able to determine it by my self. Enabling template and block hints states that the template file is /var/www/html/px.local/mage22/vendor/magento/module-catalog/view/frontend/templates/category/products.phtml
and the related block is "Magento\Catalog\Block\Category\View"
.
But here I'm stuck.
Can anyone help to determine how to add the CMS block?