cancel
Showing results for 
Search instead for 
Did you mean: 

How can I list ReferenceBlocks?

How can I list ReferenceBlocks?

This is the thing: To be able to customize many things in Magento, I need to reference the right referenceBlock and/or referenceContainer, as described in the documentation .

 

But the documentation doesn't contain a list of this elements, so, how I am supposed to discover their names? Thank you.

5 REPLIES 5

Re: How can I list ReferenceBlocks?

@adrian_lopez2 Lets suppose you want the name of any referenceBlock on product page so just go to vendor->magento->catalog->view->layout.

 

There you find the catalog_product_view.xml file and you can check the referenceBlock there.

 

Just like this every page has its own xml file which you can find in vendor->magento folder and you can take the referenceBlock from there.

 

Thanks

Re: How can I list ReferenceBlocks?

Thank you for your response but I'm on Magento 2.3.3 and there's no 'catalog' directory under vendor->magento.

Re: How can I list ReferenceBlocks?

@adrian_lopez2 please check at vendor/magento/module-catalog/view/frontend/layout path.

 

You will find different xml files you can check these.

 

Thanks

Re: How can I list ReferenceBlocks?

Got it, It's under:

    app/code/Magento/catalog/view/frontend/layout/catalog_product_view.xml

Thank you!

Re: How can I list ReferenceBlocks?

@adrian_lopez2 If it is useful then Accept it as solution so that it might help someone facing the same issue.

 

Thanks