I have a custom block that's like the Teaser block, but focused on selecting only "news items"
Use case is that the user wants to place an existing news item on the front page using the block editor.
(We're a news organization, and we like to edit the homepage with recent stories A LOT!)
My Question:
How can I make the 'object browser' widget know that I want to filter the content type of the response. Or even better, just show me all the objects of content-type news-item ordered by publication date, and only show those that are 'published'
Likely, the user is looking for a story that was published in the last 24 hours.
I'm still getting my sea legs in react & volto, but I got so far as the edit bar & schema browsing my entire Plone site, and it's just not friendly to someone trying to find a story.
properties: {
story:{
title: "Story",
widget: "object_browser",
mode: "link",
allowExternals: false,
},
Thanks!