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

patroklo14744
patroklo14744

I want to extend the lists widget to add the double click functionality.

My best approach right now it's to find a way to override the /modules/backend/widgets/lists/partials/_list_body_row.htm to add a call to a new additional method in that partial, since thanks to the cool feature of extensions I can already add dynamically methods and properties with

Lists::extend(function($lists){
 // add dynamic method and property
});

That way I'll be able to add the logic and change the lists partials to call that new logic the same way the one click way works.

Another approach would be (that would require changing the core of octoberCMS) adding a new alias called "List" (for example) and change all the calls to makeWidget from Backend\Widgets\Lists to the defined alias (for instance, the ListController behavior in the makeList method), but of course that would require change vendor code and that would be veeeery wrong.

Any ideas?

Last updated

1-1 of 1

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