Custom ISearchableTree to search content in backoffice - URL is not showing in search results
Looking at umbraco default implementation, i can see that the AdditionalData["Url"] needs to be populated with URL value and i have implemented this as seen below but it still does not show the URL in search results.
I have found a fix after looking at ContentTreeController class and comparing the difference between my custom implementation. I found that ContentTreeController had this attribute applied to the class [SearchableTree("searchResultFormatter", "configureContentResult")] and after applying this to my implementation, it sttarted showing the URL in search results.
Full implementation is below for anyone wanting to replace umbraco backoffice content search. It will search content by node name and url of content.
Custom ISearchableTree to search content in backoffice - URL is not showing in search results
Looking at umbraco default implementation, i can see that the AdditionalData["Url"] needs to be populated with URL value and i have implemented this as seen below but it still does not show the URL in search results.
Full implementation:
I have found a fix after looking at ContentTreeController class and comparing the difference between my custom implementation. I found that ContentTreeController had this attribute applied to the class [SearchableTree("searchResultFormatter", "configureContentResult")] and after applying this to my implementation, it sttarted showing the URL in search results.
Full implementation is below for anyone wanting to replace umbraco backoffice content search. It will search content by node name and url of content.
https://our.umbraco.com/Documentation/Extending/Section-Trees/Searchable-Trees/index-v7/
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.