2

I wanted to know, can we use same name for ui_component file.

Ex. In \vendor\magento\module-catalog\view\adminhtml\ui_component product_listing.xml is use to create product grid so can I use product_listing.xml in my custom module.

Ex. app\code\<namespace>\<module>\view\adminhtml\ui_component\product_listing.xml

I tried with above case but core one is loaded in place of my custom one.

How can I load my custom one?

asked Mar 1, 2017 at 14:09

1 Answer 1

3

If I'm not mistaking the names must be unique. If you use a similar name, Magento will squash both XML files down into a single configuration.

So if your module also has a product_listing.xml, it's content will be merged with the one that's also provided with Magento.

So yeah, use unique names.

answered Mar 1, 2017 at 15:39

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.