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>
2
  • 1
    maybe you can show some code and give an example of what you need from system config
    – Marius
    Jan 17 '18 at 9:29
  • See the updated post @Marius
    – Jaisa
    Jan 17 '18 at 9:45
0

You can use following in your xml:

<head {vendor}-config-template="{section}/{group}/{field}">
    <css src="css/rtl.css" />
</head>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.