cancel
Showing results for 
Search instead for 
Did you mean: 

It would be nice to have an ability to skip the current module name prefix in layout files for...

0 Kudos

It would be nice to have an ability to skip the current module name prefix in layout files for...

Feature request from mage2pro, posted on GitHub Nov 17, 2015

See, for example: https://github.com/magento/magento2/blob/2335247d4ae2dc1e0728ee73022b0a244ccd7f4c/app/code/Magento/C...

<block 
    class="Magento\Catalog\Block\Adminhtml\Product\Edit\Js" 
    name="catalog_product_js" 
    template="catalog/product/js.phtml"
/>

is the same as

<block 
    class="Magento\Catalog\Block\Adminhtml\Product\Edit\Js" 
    name="catalog_product_js" 
    template="Magento_Catalog::catalog/product/js.phtml"
/>

But it is not possible for CSS and JS declarations: https://github.com/magento/magento2/blob/2335247d4ae2dc1e0728ee73022b0a244ccd7f4c/app/code/Magento/C...

<css src="Magento_Catalog::product/product.css"/>

It would be nice to have an abilily skip the current module prefix and use some shorter syntax like <css src="product/product.css"/> or <css src=":Smiley Tongueroduct/product.css"/>