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

leocavalcante
leocavalcante

Its kind of something that I mentioned at this post

I found myself trying to use the back-end Lists widget, but the widget handles fetching by itself, I can't pass my own records to be rendered.

leocavalcante
leocavalcante

Workaround:

Controller index method

$this->asExtension('ListController')->index();
$this->widget->list->prepareVars();
$this->widget->list->vars['records'] = $shinyNewRecords;
$renderedList = $this->widget->list->makePartial('list-container');
$this->vars['list'] = $renderedList;

index.htm

<?= $list ?>

1-2 of 2

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