Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I want to use a search which search in my entire website i used this:
var searchQuery = Request.QueryString["query"];
<p>Your search results for <strong>@searchQuery</strong></p>
@foreach (var result in Umbraco.Search(searchQuery))
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 use Umbraco.TypedSearch() in the same way, so you can do @result.GetPropertyValue("propertyName")
Thanks a lot!
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted