As designed Template widget_def_options... error

Snog

Well-known member
Affected version
2.0 RC 3
If you have a widget that does not require any options and you don't create the admin options template, you get this error:
Code:
Template errors
[LIST]
[*]Template admin:widget_def_options_snog_data: Template admin:widget_def_options_snog_data is unknown (src/XF/Template/Templater.php:564)
[/LIST]
Since the widget doesn't need any options except the default ones, it seems to me that the error should not be displayed. Otherwise we're forced to create an empty template to suppress the error.
 
You don’t need to create the template. You just override the method that renders the template. See the VisitorPanel widget for an example.
 
Top Bottom