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

gergo85
gergo85

I would like to add "where" sql command and hide the some lines (for example soft deleted items). I don't want to use visible checkbox filter.

oly2554
oly2554

If I'm understanding you right you can use listExtendQuery($query) in your controller. So the function would look a bit like

public function listExtendQuery($query) { $query->where('something', '<>', 'somethingelse'); }

There is more info in the documentation http://octobercms.com/docs/backend/lists#extend-list-behavior

gergo85
gergo85

That’s what I was thinking about. Thank you very much for your help!

1-3 of 3

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