How to create a search examine function but the all the website contents are in BlockList?
I have try many methods but it is still not functioning. I have created the models, services, controllers and view model but still unable to get the output. I am currently using Umbraco v10 and Visual Studio 2022.
I am new to Umbraco and I'm hoping someone will guide me from A-Z. Your cooperation is muchly appreciated!
i already follow the instructions however, I am confused with this part.
private string SearchableText(BlockListModel blocklist)
{
var searchableText = new List
foreach (var block in blocklist)
{
if(block.Content is CallToAction)
{
var typedBlock = block.Content as CallToAction;
searchableText.Add(typedBlock.Text);
}
Based on the codes above, the "CallToAction" must be based on the generated modelsbuilder models (CallToAction.generated.cs) but mine is the normal builder which is (CallToAction.cs) . Is it still possible to get the output?
Searching content in blocklist
How to create a search examine function but the all the website contents are in BlockList?
I have try many methods but it is still not functioning. I have created the models, services, controllers and view model but still unable to get the output. I am currently using Umbraco v10 and Visual Studio 2022.
I am new to Umbraco and I'm hoping someone will guide me from A-Z. Your cooperation is muchly appreciated!
Check out this article
https://dev.to/jemayn/indexing-blocklist-data-in-umbraco-9-334o
i already follow the instructions however, I am confused with this part.
private string SearchableText(BlockListModel blocklist) { var searchableText = new List
Based on the codes above, the "CallToAction" must be based on the generated modelsbuilder models (CallToAction.generated.cs) but mine is the normal builder which is (CallToAction.cs) . Is it still possible to get the output?
is working on a reply...