New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
widget iconPath() incorrect (craft3 module) #54
Comments
Thanks, I'll get this fixed up. |
Same error here in October, but a simple fix - thanks both! |
As well as fixing it in |
Just had this same issue. Would be nice if this could be fixed in the pluginfactory :) |
Fixed in 0070281 |
HI
Craft CMS 3.0.3.1 (PRO)
When creating a Craft 3 module with widgets - the iconPath in the widget is missing the prefix 'modules', as the alias is set in /modules/{module_name/src/{module_name}.php __construct() as:
Craft::setAlias('@modules/restmodule', $this->getBasePath());
The function iconPath() /modules/{module_name}/src/widgets/{widget_name).php is:
return Craft::getAlias("@{module_name}/assetbundles/fibrewidget/dist/img/{widget_name}-icon.svg");
when it should be:
return Craft::getAlias("@modules/{module_name}/assetbundles/fibrewidget/dist/img/{widget_name}-icon.svg");
The text was updated successfully, but these errors were encountered: