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

LMBdev
LMBdev

So I've created a frontend list using the backend controller for the users plugin. I followed this page https://medium.com/@matissjanis/octobercms-using-backend-forms-in-frontend-component-fe6c86f9296b which describes using a backend form on the frontend. I applied the concept to using backend lists on the front end.

I have been partially successful in that I have the list displayed; however, none of the list functionality exists. For instance, when I try to sort my list by one of the searchable fields, I get an error:

AJAX handler 'list::onSort' was not found. After doing some searching and what not, I found the onSort() function in the modules\backend\widgets folder. I thought perhaps including this in my controller class would work so I added:

use Backend\Widgets\Lists;

The problem persists.... anyone have any ideas of how I can pull the sort functionality over from the backend? I've got the list displayed, I just need the functionality now. Thanks.

LMBdev
adam26065
adam26065

It seems that the component could be add in the partial which does not allow AJAX calls, have you verified that?

LMBdev
LMBdev

Can you clarify what you mean? I don't quite understand your response. Thanks.

adam26065
adam26065

I had the same error when I tries to use the component in the partial .htm file the partial looked then like this

[componentName]
==
the html code

I had an ajax call to the component with an error that disappeared when I moved the component inclusion to the layout (or page).

1-5 of 5

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