I'm using Lemoon CMS. I've created a new Content Type, and i've modified it with new fields and all its working fine.
I created a new user control to show some data from my content type which the field ("isFeatured=true")
How I can customize the code to filter the content, and how i can sort the data by custom added field?
ContentQuery query = new ContentQuery();
query.ParentID = 70;
query.MinDepth = 1;
query.MaxDepth = 1;
query.LanguageMode = LanguageMode.Fallback;
query.SearchNonSearchable = null;
query.ContentTypes.Add(typeof(Mindroute.Lemoon.Generated.ContentType.ServiceItem).FullName);
query.ContentTypeMode = ContentTypeMode.Inherit;
//query.OrderBy.Add(new SortItem(ContentColumn.Columns[6], "desc"));
Response.Write(ContentColumn.Columns[6]);
query.PageSize = 8;
Entries = ContentService.Search(query).Cast<Mindroute.Lemoon.Generated.ContentType.ServiceItem>();