We had a custom block injected in adminhtml section. This block is managed in a module (let’s call it Vendor/Module) & it was working fine in Magento 2.1.*, following this methodology magento 2 – How to create a custom "admin" block and display it on an existing Admin page?
After upgrading to 2.2 the block have dissapeared
I have checked for the concrete layout (in our case
sales_order_view.xml) for any structure changes in the new version, but containers & blocks look the same as we had in 2.1.*
Any ideas for this?
This is the concrete layout file which worked fine in 2.1.*
<?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> <referenceBlock name="order_info"> <block class="VendorModuleBlockAdminhtmlSalesOrderViewForm" name="our_unique_block_name" template="Vendor_Module::our_template.phtml"/> </referenceBlock> </body> </page>
Bounty: provide XML to inject a block inside sales_order_view adminhtml layout, explaining how to place it in diferent sections of the page