10

I want to add a layered navigation block for a custom product collection. Is there a way to do that in Magento2 ?

bumped to the homepage by Community 2 days ago

This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

0

I know you can add one manually by adding a static block (with links to all the items you want to link) and calling it in the category layout update xml using the code below. P.S. "Block_Code" is your static block code.

<referenceContainer name="sidebar.additional"> <block class="Magento\Cms\Block\Block" name="male_model"> <arguments> <argument name="block_id" xsi:type="string">Block_Code</argument> </arguments> </block> </referenceContainer>

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.