1

I have created admin grid and form using Ui component, Now I need to get system configuaration values in my form.xml. Please provide me a solution I need to get width,height,image size from below image. enter image description here

System.xml

<field id="image" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
 <label>Small Image</label>
 <frontend_model>X\Y\Block\Adminhtml\System\Config</frontend_model>
 <backend_model>Magento\Config\Model\Config\Backend\Serialized\ArraySerialized</backend_model> 
 <comment>Image size should be in Bytes(1 KB = 1024 Bytes, 10 KB = 10240 Bytes, 50 KB = 51200 Bytes, 100 KB = 102400 Bytes, 150 KB = 153600 Bytes)</comment>
 </field>
asked Jan 17, 2018 at 9:22
2
  • 1
    maybe you can show some code and give an example of what you need from system config Commented Jan 17, 2018 at 9:29
  • See the updated post @Marius Commented Jan 17, 2018 at 9:45

1 Answer 1

0

You can use following in your xml:

<head {vendor}-config-template="{section}/{group}/{field}">
 <css src="css/rtl.css" />
</head>
answered Apr 13, 2018 at 10:42

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.