You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+46Lines changed: 46 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,6 +68,52 @@ After installation, a new widget type "Smile Custom Entity Widget" will be avail
68
68
69
69
The widget can be placed on any CMS page, block, or within layout XML, providing flexible integration options.
70
70
71
+
### Customizing Widget Options Through Theme Templates
72
+
73
+
To customize or extend the SmileCustomEntityWidget's options, you can override the widget configuration within your theme by creating a widget.xml file in your theme's configuration directory.
74
+
75
+
#### Instructions:
76
+
77
+
1. Create the following directory structure in your theme folder if it doesn't already exist:
<labeltranslate="true">Custom List Template</label>
99
+
</option>
100
+
<!-- Add more template options as needed -->
101
+
</options>
102
+
</parameter>
103
+
</parameters>
104
+
</widget>
105
+
</widgets>
106
+
```
107
+
108
+
3. After adding this file, clear the Magento cache:
109
+
```bash
110
+
bin/magento cache:clean
111
+
```
112
+
113
+
This approach allows you to extend the widget configuration without modifying the core module code. You can add new template options, modify existing parameters, or introduce entirely new parameters to customize the widget's behavior to meet your specific design requirements.
114
+
115
+
Note that any custom templates referenced in your widget.xml must exist within your theme structure for them to work properly.
0 commit comments