FileList

Upload files to display in a list.

Back to FileList Support

Briddle
Briddle

I do not see any of my uploaded files but if I change onRender() in FileList component to onRun() it works.

Last updated

Briddle
Briddle

Also, if I change the function in the FileList component to:

public function onRun()
{
    $filelist = new ListModel;
    if(is_numeric($this->property('id'))) {
        $this->filelist = $this->page['filelist'] = $filelist->where('id', '=', $this->property('id'))->first();
    } else {
        $this->filelist = $this->page['filelist'] = $filelist->where('name', '=', $this->property('id'))->first();
    }
}

It also accepts :slug as an id parameter if :slug is the name of the FileList and not the ID

Last updated

1-2 of 2