Smile-SA/elasticsuite

View on GitHub
src/module-elasticsuite-catalog/view/frontend/layout/catalogsearch_result_index.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0"?>
<!--
/**
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Smile ElasticSuite to newer
 * versions in the future.
 *
 * @category  Smile
 * @package   Smile\ElasticsuiteCatalog
 * @author    Aurelien FOUCRET <aurelien.foucret@smile.fr>
 * @copyright 2020 Smile
 * @license   Open Software License ("OSL") v. 3.0
 */
 -->
 
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="catalogsearch.leftnav" template="Smile_ElasticsuiteCatalog::layer/view.phtml" >
            <block class="Smile\ElasticsuiteCatalog\Block\Navigation\FilterRenderer" 
                   name="catalogsearch.navigation.renderer"
                   as="renderer" 
                   template="Smile_ElasticsuiteCatalog::layer/filter/default.phtml">
                   
                   <block class="Smile\ElasticsuiteCatalog\Block\Navigation\Renderer\Attribute"
                           name="catalogsearch.navigation.renderer.attribute"
                           template="Smile_ElasticsuiteCatalog::layer/filter/attribute.phtml"
                           after="-" />
                           
                   <block class="Smile\ElasticsuiteCatalog\Block\Navigation\Renderer\Category"
                           name="catalogsearch.navigation.renderer.category"
                           template="Smile_ElasticsuiteCatalog::layer/filter/default.phtml" />
                   
                    <block class="Smile\ElasticsuiteCatalog\Block\Navigation\Renderer\Slider"
                           name="catalogsearch.navigation.renderer.slider"
                           template="Smile_ElasticsuiteCatalog::layer/filter/slider.phtml" />
                           
                   <block class="Smile\ElasticsuiteCatalog\Block\Navigation\Renderer\PriceSlider"
                          name="catalogsearch.navigation.renderer.price.slider"
                          template="Smile_ElasticsuiteCatalog::layer/filter/slider.phtml" />
            </block>
        </referenceBlock>

        <referenceContainer name="content">
            <block class = "Smile\ElasticsuiteCatalog\Block\CatalogSearch\Result\Cache"
                   name  = "smile.elasticsuite.catalogsearch.result.cache"
                   as    = "smile.elasticsuite.catalogsearch.result.cache"
            />
        </referenceContainer>
    </body>
</page>