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

Hi guys, I was willing to add a control-wdiget right bellow the list table widget within sums and averages of the current displayed records.

After some tries, came up with this:

$this->asExtension('ListController')->index();
$this->vars['renderedList'] = $this->listRender();

/** @var LengthAwarePaginator $records */
$records = $this->widget->list->vars['records'];

Them I can have filtered $records and play with them in the controller to output cool things on my index.htm

But I think this is to jury-rig, there is a better way to do that? A best practice?

Thanks.

Last updated

1-1 of 1

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