|
13 | 13 | <field id="catalog_media_url_format_custom_pattern" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="0"> |
14 | 14 | <label>Custom URL format</label> |
15 | 15 | <depends> |
| 16 | + <field id="catalog_media_url_format">image_optimization_parameters</field> |
16 | 17 | <field id="catalog_media_url_format_custom_type">pattern</field> |
17 | 18 | </depends> |
18 | 19 | <comment><![CDATA[Custom format to add dynamic parameters.<br/> |
|
23 | 24 | <field id="catalog_media_url_format_custom_imgproxy_host" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="0"> |
24 | 25 | <label>Imgproxy Host</label> |
25 | 26 | <depends> |
| 27 | + <field id="catalog_media_url_format">image_optimization_parameters</field> |
26 | 28 | <field id="catalog_media_url_format_custom_type">imgproxy</field> |
27 | 29 | </depends> |
28 | 30 | <comment><![CDATA[The host the Imgproxy instance can be reached, eg https://example.com:8080/]]></comment> |
29 | 31 | </field> |
30 | 32 | <field id="catalog_media_url_format_custom_imgproxy_key" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="0"> |
31 | 33 | <label>Imgproxy Key</label> |
32 | 34 | <depends> |
| 35 | + <field id="catalog_media_url_format">image_optimization_parameters</field> |
33 | 36 | <field id="catalog_media_url_format_custom_type">imgproxy</field> |
34 | 37 | </depends> |
35 | 38 | <comment><![CDATA[The IMGPROXY_KEY value, if signing is required]]></comment> |
36 | 39 | </field> |
37 | 40 | <field id="catalog_media_url_format_custom_imgproxy_salt" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="0"> |
38 | 41 | <label>Imgproxy Salt</label> |
39 | 42 | <depends> |
| 43 | + <field id="catalog_media_url_format">image_optimization_parameters</field> |
40 | 44 | <field id="catalog_media_url_format_custom_type">imgproxy</field> |
41 | 45 | </depends> |
42 | 46 | <comment><![CDATA[The IMGPROXY_SALT value, if signing is required]]></comment> |
43 | 47 | </field> |
44 | 48 | <field id="catalog_media_url_format_custom_imgproxy_resize" translate="label comment" type="select" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="0"> |
45 | 49 | <label>Imgproxy Resize Type</label> |
46 | 50 | <depends> |
| 51 | + <field id="catalog_media_url_format">image_optimization_parameters</field> |
47 | 52 | <field id="catalog_media_url_format_custom_type">imgproxy</field> |
48 | 53 | </depends> |
49 | 54 | <source_model>Fruitcake\CustomImageUrl\Model\Config\Source\ImgproxyResizeType</source_model> |
50 | | - |
51 | 55 | <comment><![CDATA[The Resize type]]></comment> |
52 | 56 | </field> |
53 | 57 | <field id="catalog_media_url_format_custom_imgproxy_source_type" translate="label comment" type="select" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="0"> |
54 | 58 | <label>Imgproxy Source Type</label> |
55 | 59 | <depends> |
| 60 | + <field id="catalog_media_url_format">image_optimization_parameters</field> |
56 | 61 | <field id="catalog_media_url_format_custom_type">imgproxy</field> |
57 | 62 | </depends> |
58 | 63 | <source_model>Fruitcake\CustomImageUrl\Model\Config\Source\ImgproxySourceType</source_model> |
|
61 | 66 | <field id="catalog_media_url_format_custom_imgproxy_source_prefix" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="0"> |
62 | 67 | <label>Imgproxy Source Prefix</label> |
63 | 68 | <depends> |
| 69 | + <field id="catalog_media_url_format">image_optimization_parameters</field> |
64 | 70 | <field id="catalog_media_url_format_custom_type">imgproxy</field> |
65 | 71 | <field id="catalog_media_url_format_custom_imgproxy_source_type" separator=",">local,s3</field> |
66 | 72 | </depends> |
67 | 73 | <comment><![CDATA[For s3, provide both the bucket and optional prefix.]]></comment> |
68 | 74 | </field> |
| 75 | + <field id="catalog_media_url_format_custom_imgproxy_source_custom_url" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="0"> |
| 76 | + <label>Imgproxy Source Custom URL</label> |
| 77 | + <depends> |
| 78 | + <field id="catalog_media_url_format">image_optimization_parameters</field> |
| 79 | + <field id="catalog_media_url_format_custom_type">imgproxy</field> |
| 80 | + <field id="catalog_media_url_format_custom_imgproxy_source_type" separator=",">custom_url</field> |
| 81 | + </depends> |
| 82 | + <comment><![CDATA[Enter a custom URL to proxy.]]></comment> |
| 83 | + </field> |
69 | 84 | </group> |
70 | 85 | </section> |
71 | 86 | </system> |
|
0 commit comments