Panel Pages Section Custom Filter

Hello,

I have a pages section in the panel. The pages have some toggles; “paid”, “active” etc.
Is there a way to filter on the fly by these toggles? Similar to the “filter” button that opens the search dialogue.

I have tried making a custom panel section that extends the pages section and I almost got it to work but the API endpoint for page sections differs from that of the pages/children search endpoint, which accepts the “filterBy” parameter, because it does not return page data structured in the correct way according to the columns specified for the table layout. ( <code>GET|POST</code> /api/pages/:id/children/search | Kirby CMS ).

I suggest you create a section for each toggle value,

assuming your toggle is named “payment_status” and you can change to paid, active, pending, etc

query: page.childrenAndDrafts.filterBy('payment_status', 'paid')

Its not really a “on the fly” filter solution but i should work