This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Hi ! I found many post on this forum for the same error but I not found a Issue.
A try to make a todolist dashboard widget and on ajax remove, I would like to update my partial.
I have this error when a try to remove note ( this note is corectly delete ) : "The partial 'C:\wamp\www\example\october\modules\backend\controllers/index/_todolistwidget.htm' is not found." on line 61 of C:\wamp\www\example\october\modules\system\traits\ViewMaker.php
This is my code : <a class="text-danger pull-right" data-request="<?= $this->getEventHandler('onTodolistDelete') ?>" data-request-data="id:<?= $note->id ?>" data-request-confirm="Are you sur ?" data-request-update="'widget':'#todo-list'"
Thank's for the help.
EDIT: Issue has been fixed: https://github.com/octobercms/october/issues/2432
Provided Solutions
- Use the equivalent function of "Pushing Content Updates"
Documentation: https://octobercms.com/docs/cms/ajax#pushing-content-updates - Or just use plain JavaScript and replace your content
Example
HTML: data-request="<?= $this->getEventHandler('onRequireMessage') ?>"
PHP: return ['#flashMessages' => $this->renderPartial('flash-messages')];
This will update only the Partial, and replace the HTML found by the selector.
Last updated
1-3 of 3