A couple of suggestions and a work-around
Gordon
Junior Member
Posts: 23
1 năm 5 tháng trước - 1 năm 5 tháng trước #10150
bởi Gordon
Never doubt that a small group of committed people can change the world. Indeed, it is the only thing that ever has... Margaret Mead
Gordon Wright
Old fart developer
A couple of suggestions and a work-around was created by Gordon
I have just completed the Joomla 4 migration of my component com_legislation and I would like to share some issues and suggestions.
1. I experienced a lot of “failed to move the file:” warnings during the save and upload process, which interrupted the save process and caused the upload to fail. Moving the save to before the custom upload, saved the file but the upload failed. The issue appeared to be intermittent based upon the configuration of a MAMP server (localhost).
I eventually traced the issue to the code in the CHECK process (Admin>Table) as below…
Commenting out that part of the script and everything work flawlessly. I don’t understand, but I suspect there may be some kind of timing issue.
2. The component creator (CC) needs to add the toggle in form button as an option. It only requires one line in the bottom of the form’s view (after OPTIONS to keep it to the right) namely…
3. The other 3 lines allowed me to add HELP and VIDEO buttons to the List and Form menus, to allow a bootstrap modal to be loaded in the form and list template files. That would make a very nice optional addition to the CC tool.
4. Finally I added some regex validation to the form by adding the JS files in the Media folder under the component plus the other areas that required the configuration. It would be nice to have an option to have a field in the CC form to allow each field’s regex check to be pasted in. The validation is activated by making 4 changes to the files, so this would save a lot of time. See blog.astrid-guenther.de/en/joomla-clientseiteige-validierung/ for a tutorial on how to do this.
Thanks for your help and support with my project. I only hope the Joomla developers do not make migrating as difficult next time.
Gordon
1. I experienced a lot of “failed to move the file:” warnings during the save and upload process, which interrupted the save process and caused the upload to fail. Moving the save to before the custom upload, saved the file but the upload failed. The issue appeared to be intermittent based upon the configuration of a MAMP server (localhost).
I eventually traced the issue to the code in the CHECK process (Admin>Table) as below…
if (!File::exists($uploadPath))
{
if (!File::upload($fileTemp, $uploadPath))
{
$app->enqueueMessage('Error moving file', 'warning');
return false;
}
}
Commenting out that part of the script and everything work flawlessly. I don’t understand, but I suspect there may be some kind of timing issue.
2. The component creator (CC) needs to add the toggle in form button as an option. It only requires one line in the bottom of the form’s view (after OPTIONS to keep it to the right) namely…
ToolbarHelper::divider();
ToolbarHelper::inlinehelp();
ToolbarHelper::Modal('myAdminActVideoModal', 'fas fa-video', 'Video');
ToolbarHelper::Modal('myAdminActHelpModal', 'fas fa-question-circle', 'Help');
3. The other 3 lines allowed me to add HELP and VIDEO buttons to the List and Form menus, to allow a bootstrap modal to be loaded in the form and list template files. That would make a very nice optional addition to the CC tool.
4. Finally I added some regex validation to the form by adding the JS files in the Media folder under the component plus the other areas that required the configuration. It would be nice to have an option to have a field in the CC form to allow each field’s regex check to be pasted in. The validation is activated by making 4 changes to the files, so this would save a lot of time. See blog.astrid-guenther.de/en/joomla-clientseiteige-validierung/ for a tutorial on how to do this.
Thanks for your help and support with my project. I only hope the Joomla developers do not make migrating as difficult next time.
Gordon
Never doubt that a small group of committed people can change the world. Indeed, it is the only thing that ever has... Margaret Mead
Gordon Wright
Old fart developer
Last edit: 1 năm 5 tháng trước by Gordon.
Vui lòng Đăng nhập hoặc Tạo tài khoản để tham gia cuộc hội thoại.
Super User
Administrator
Posts: 13
1 năm 5 tháng trước #10151
bởi Super User
Replied by Super User on topic A couple of suggestions and a work-around
Thank you for your valuable suggestions!
Can you add above your suggestions as a separate feature request to JCC so that if more people wanted it we can prioritize and implement it? Here is our GitHub repo link where you can add your request github.com/aDaneInSpain/component-creator-issues/issues
Can you add above your suggestions as a separate feature request to JCC so that if more people wanted it we can prioritize and implement it? Here is our GitHub repo link where you can add your request github.com/aDaneInSpain/component-creator-issues/issues
Vui lòng Đăng nhập hoặc Tạo tài khoản để tham gia cuộc hội thoại.
Patrick Brooks
New Member
Posts: 1
1 năm 2 tháng trước #10227
bởi Patrick Brooks
Replied by Patrick Brooks on topic A couple of suggestions and a work-around
This would require a small modification in the form's view. Additionally, you mention adding HELP and VIDEO buttons to the List and Form menus, allowing a bootstrap modal to be loaded. This would be a valuable addition to the CC tool.
Vui lòng Đăng nhập hoặc Tạo tài khoản để tham gia cuộc hội thoại.
Thời gian tải trang: 0.055 giây