Guest User

Untitled

a guest
Jan 22nd, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. VendorModuleControllerResultIndex.php //For CatalogSearch
  2.  
  3. VendorModuleControllerCategoryView.php //For Catalog
  4.  
  5. <?xml version="1.0"?>
  6. <referenceBlock name="catalogsearch.leftnav">
  7. <action method="setTemplate">
  8. <argument name="template" xsi:type="string">Vendor_Module::layer/view.phtml</argument>
  9. </action>
  10. </referenceBlock>
  11.  
  12. <?xml version="1.0"?>
  13. <referenceBlock name="product_list_toolbar">
  14. <action method="setTemplate">
  15. <argument name="template" xsi:type="string">Vendor_Module::product/list/toolbar.phtml</argument>
  16. </action>
  17. </referenceBlock>
  18.  
  19. <?xml version="1.0"?>
  20. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
  21. <router id="standard">
  22. <route id="catalogsearch" frontName="catalogsearch">
  23. <module name="Vendor_Module"/>
  24. </route>
  25. </router>
  26. </config>
  27.  
  28. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
  29. <module name="Example_Module" setup_version="2.0.0" >
  30. <sequence>
  31. <module name="Magento_Catalog"/>
  32. <module name="Magento_CatalogSearch"/>
  33. </sequence>
  34. </module>
  35. </config>
Add Comment
Please, Sign In to add comment