0

I am trying to overwrite following file: vendor/magento/module-theme/view/adminhtml/ui_component/design_config_form.xml

The changes work when editing the file directly in vendor dir, however, I am having some problems overwriting this file.

I copied the file to following location but it just doesn't work: app/code/Magento/Theme/view/adminhtml/ui_component/design_config_form.xml

I ran:

rm -rf generated/code

rm -rf pub/static/* var/view_preprocessed

php bin/magento setup:upgrade

php bin/magento setup:di:compile

php bin/magento cache:clean && php bin/magento cache:flush

Nothing seems to work. What am I doing wrong?

asked Jun 20, 2019 at 11:02

3 Answers 3

2

Define This in module.xml

 <sequence>
 <module name="Magento_Theme"/>
 </sequence>

Component load order

answered Jun 20, 2019 at 11:06
5
  • This seemed to work! Can you explain I had to add this? Commented Jun 20, 2019 at 11:22
  • 1
    its specify for load order Commented Jun 20, 2019 at 11:25
  • 1
    devdocs.magento.com/guides/v2.3/extension-dev-guide/build/… Commented Jun 20, 2019 at 11:27
  • Great. Thank you! Lesson learned! Commented Jun 20, 2019 at 11:35
  • most welcome happy coding....:) Commented Jun 20, 2019 at 11:36
1

The file has likely been copied to the wrong location. Your theme is either frontend or adminhtml so does not require that distinction in the folder structure.

So instead of app/code/Magento/Theme/view/adminhtml/ui_component/design_config_form.xml you'll need something like path/to/admin-theme/Magento_Theme/ui_component/design_config_form.xml

answered Jun 20, 2019 at 11:14
1
  • 1
    thank you for your answer! I found a solution in the accepted answer. Commented Jun 20, 2019 at 11:23
1

You can extend the ui_component using a custom module.

  1. So create a Vendor/Module. (registration, etc/module.xml, composer.json)
  2. Extend the ui_component in your module. Vendor/Module/view/adminhtml/ui_component/ui_component_name.xml

An official example of extending the category form ui_component can be found here

An example of extending the customer_form can be found here

answered Jun 20, 2019 at 11:18
1
  • 1
    thank you for your answer! I found a solution in the accepted answer. Commented Jun 20, 2019 at 11:23

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.