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
Jaisa
2,64010 gold badges58 silver badges124 bronze badges
-
1maybe you can show some code and give an example of what you need from system configMarius– Marius2018年01月17日 09:29:11 +00:00Commented Jan 17, 2018 at 9:29
-
See the updated post @MariusJaisa– Jaisa2018年01月17日 09:45:40 +00:00Commented Jan 17, 2018 at 9:45
1 Answer 1
You can use following in your xml:
<head {vendor}-config-template="{section}/{group}/{field}">
<css src="css/rtl.css" />
</head>
Explore related questions
See similar questions with these tags.
default