I created a cms page with url key “allproducts”, i add a layout.xml cms_page_view_id_allproducts.xml in my theme appdesignfrontendVendorNameMagento_Cmslayout
here is the content of the layout xml,
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceContainer name="content">
<block class="MagentoCatalogBlockProductProductListToolbar" name="category.toolbar" template="Magento_Catalog::product/list/toolbar.phtml"/>
<block class="MagentoLayeredNavigationBlockNavigation" name="catalog.leftnav" before="-" template="Magento_LayeredNavigation::layer/view.phtml"/>
<block class="MagentoCatalogBlockProductListProduct" name="category.products.list" template="Magento_Catalog::product/list.phtml">
<container name="category.product.list.additional" as="additional" />
</block>
</referenceContainer>
</body>
</page>
error:
Error: Cannot instantiate interface MagentoCatalogModelLayerFilterableAttributeListInterface in /var/www/example/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:50
but it is not work,do anyone how what is the simplest way to show all products with layered nav?