Query where clause is not producing desired results
Hi there,
I am working in a partial view and I need to get video lectures in a partial view. Following is query that is working fine
@using YouTube
@using YouTube.Models
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@{
var homePage = CurrentPage.AncestorsOrSelf(1).First();
var lectureVideos = homePage.Descendants("videoLecture").Where("Visible").OrderBy("publishDate desc, createDate desc");
}
But I need to filter the videos based on their description property named as "lectureDescription", a rich text editor. I want to exclude those videos having no description. I have run the following query but it's not working and its giving no result at all.
Query where clause is not producing desired results
Hi there, I am working in a partial view and I need to get video lectures in a partial view. Following is query that is working fine
But I need to filter the videos based on their description property named as "lectureDescription", a rich text editor. I want to exclude those videos having no description. I have run the following query but it's not working and its giving no result at all.
Can someone point out and guide me into right direction, I will be thankful.
Anyone? Kindly give me any suggestion.
Hi Sameer,
I'm not working with the dynamic syntax but maybe you can cross check what happens when you use the strongly typed one.
Something like
Maybe that helps to figure out what the problem is.
Regards David
is working on a reply...