This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
I was just trying out RainLab's blog plugin when I ran into an error:
The partial 'modules/backend/widgets/form/partials/_field_datepicker.htm' is not found.
I looked in the file structure and sure enough there are a lot of partials in there but no "_field_datepicker.htm". Is anyone else having this issue or know where I can find this partial to load it in manually?
Happened to notice this today as well. Need to put in a date field, and was going to use the date picker. Any luck on finding the partial? I looked back over my prior versions to see if it happened to be there, but did not find it.
I found this issue on github: https://github.com/octobercms/october/issues/703 It looks like the issue has been fixed in this commit.
I just ran the update utility from the backend which took me from build 155 to 156 and the issue was fixed. After reading the commit I am still in the dark as to how this commit fixed the issue though. It looks like the problem wasn't with the htm partial at all. Instead, he renamed modules/backend/formwidgets/Datepicker.php to DatePicker.php. There must have been a broken reference somewhere.
Hope that helps kent!
/*
* Register widgets
*/
WidgetManager::instance()->registerFormWidgets(function($manager){
// [...]
$manager->registerFormWidget('Backend\FormWidgets\DatePicker', [
'label' => 'Date picker',
'alias' => 'datepicker'
]);
// [...]
});
When a widget is registered, it carries an alias, if a widget with the alias "datepicker" is found then it will use that. Otherwise it will expect a field partial by that name.
Last updated
1-5 of 5