Estou com um problema onde não aparece o campo no site editor para edição do título de uma página customizada usando o search-result-layout.
O bloco search-title.v2 nativamente pega o nome da coleção mas não permite edição pelo site-editor.
Alguém está passando pela mesma situação?
Hi Fabiano, how’s it going?
This isn’t really possible, as the name is generated automatically within the search. Therefore, it’s necessary to change the collection name directly.
Or alternatively, within the code, remove the collection Title from inside the search and insert a Rich-text in its place. This way you’ll be able to change the title whenever you want. It’s important to remember that when using this option, every time you create a new page from that search.custom, you’ll need to add a title to it.
I hope this helps, cheers!
Another solution is to create a React component that consumes a rich text field — if the rich text is filled in, it displays it; if not, it falls back to the search title.