Add Search to Block List Element Picker #11696
Replies: 2 comments 1 reply
-
This made me curios, so I decided to have a look at this, but I have hit a dead end for now. So here is what I've found out so far: Step 1The option for picking the element types opens a new content type picker via the So if the section isn't one of For testing purposes, I updated the source code so that Step 2The actual search is handled by the The highlighted lines deletages the actual search to Again for the purpose of testing and playing around, let's assume that the service has a searchContentTypes: function (args) {
if (!args.term) {
throw "args.term is required";
}
return entityResource.search(args.term, "DocumentType", args.searchFrom)
.then(data => {
data.forEach(item => searchResultFormatter.configureDefaultResult(item));
return data;
});
} With this method, the search sends a request to
Setting the type to Step 3This is how far I managed to go for now. The next step would be to look into whether the endpoint can be updated to support other types as well - content types in particular. Or if there is another endpoint we can use instead. If we can get this to work, we should be able to go back to Step 2 and make the And then thereafter back to Step 1 to also make the |
Beta Was this translation helpful? Give feedback.
-
I was thinking about this today and found this discussion. Has anyone made any progress? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
As I am using the block list editor more and more and creating lots of blocks, it would be really useful to have a search box to filter the document types to choose for the block content model and block settings model. I imagine it would work a bit like the multi node tree picker.
Here is how it looks currently.
Here is the search on the multinode tree picker
I would love it if someone was able to make this idea a reality.
Thanks in advance.
Paul
Beta Was this translation helpful? Give feedback.
All reactions