Advanced content manager extension for Magento®
- a powerful CMS

Customize the search result

With Advanced Content Manager for Magento 2, it’s possible to index and make your content searchable.

The default catalog search layout is overridden by our extension, in order to add our results to the search.
The extension is adding a Result Search Block into the Catalog Search Result page layout:


<page xmlns:xsi="..." layout="2columns-left" xsi:noNamespaceSchemaLocation="...">
       <referenceContainer name="content">
           <block class="Blackbird\ContentManager\Block\Search\Result" name="search.content.result" after="search.result" template="Blackbird_ContentManager::content/search/result.phtml" cacheable="false">


The Result Block retrieves the current query and create the search filter. The block will load a ContentList Collection from the ids retrieved in the results.

This block has the following child:

<block class="Blackbird\ContentManager\Block\Content\Widget\ContentList" name="search_content_result_list" template="Blackbird_ContentManager::content/widget/list.phtml" cacheable="false">


This child block is nothing else that a ContentList widget. See the following documentation to customize the content list widget: XML layout 


Then if you want to customize the result search for the content, you should override the following layout in frontend:



Be sure that the Blackbird_ContentManager module is loaded before yours. You can add the instruction in your module.xml file:

<module name=”MyVendor_ModuleName” setup_version=”1.0.0”>
       <module name=”Blackbird_ContentManager”/>

Now, in your catalogsearch_result_index.xml file, paste the following code in the <body> tags and add instructions from the following resource: XML layout update 

<referenceBlock name=”search_content_result_list” template=”my_custom_template.phtml”>
  <!-- Insert Instructions here -->

However if you just want to modify the template of the result search, see the following resource: Overrding templates



60 days
free support


Made for developers
and webmasters

14 days money
back guarantee

Made by Magento
certified developers