I have a module which has a visual output and therefore I like to extend an existing layout.
From what I read the magento2 way is to add a ne layout in app/design/frontend
(according to http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/layouts/layout-extend.html)
So my structure looks like this:
app/code/design/frontend/Magento/luma/Magento_Catalog/layout/catalog_product_view.xml
catalog_product_view.xml
<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceContainer name="content">
<container name="product.info.media" htmlTag="div" htmlClass="product media" after="product.info.main">
<block class="Magento\Catalog\Block\Product\View\Gallery" name="product.info.media.image" template="product/view/gallery.phtml"/>
</container>
</referenceContainer>
</body>
</page>
The content block is not changing in any way, so there seems either to be something missing or I have a missunderstanding here. Any help is appreciated.
EDIT
My magento2 code is from https://www.magentocommerce.com/download so everything is placed in vendor/
. Maybe that's why it is not working ?!
Thanks