This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

corentin8023
corentin8023

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.

blubcow
blubcow

EDIT: Issue has been fixed: https://github.com/octobercms/october/issues/2432

Provided Solutions

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

blubcow
blubcow

This issue has been fixed

And quite fast too ;)

https://github.com/octobercms/october/issues/2432

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.