Umbraco.Search() returns a dynamic. So to get a property from it you simply do @result.PropertyName
If you are more comfortable with IPublishedContent then use Umbraco.TypedSearch() in the same way, so you can do @result.GetPropertyValue("propertyName")
adding content in Search page in Umbraco
Hi, I want to use a search which search in my entire website i used this:
@{ var searchQuery = Request.QueryString["query"];
it worked perfectly the probleme i want to see the description of each result which is represented in a richtextbox, i m not too familiar with examine
Umbraco.Search()
returns a dynamic. So to get a property from it you simply do@result.PropertyName
If you are more comfortable with
IPublishedContent
then useUmbraco.TypedSearch()
in the same way, so you can do@result.GetPropertyValue("propertyName")
Worked fine. Thanks a lot!
is working on a reply...