How can I get the property Description or Keywords from PageNode?
var pageNodes = App.WorkWith().Pages().LocatedIn(PageLocation.Frontend) .Where(p => p.ApprovalWorkflowState.Value == "Published") .Get().ToList() .Where(p => return !p.IsBackend && !String.IsNullOrEmpty(p.Title) && p.Description.Value.Contains("<!--WhereToBuy-->"); ) .FirstOrDefault();Hello Bruno,
Please refer to the code sample bellow which contains the needed logic if you want to get page's description and keywords ( feel free to customize it so it suits your needs):
App.WorkWith() .Pages() .Where(p => p.ApprovalWorkflowState.Value == "Published") .Where(p => p.Page.Status == ContentLifecycleStatus.Live) .ForEach(p => var htmltitle = p.Page.HtmlTitle; var description = p.Page.Description; var keywords = p.Page.Keywords; )