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 have a product section with hundreds of produc nodes. Each has a product code. I have created a document type which allows an editor to create their own bespoke category list page by giving the category a name and content and then a list of products which should appear under it.
The pseudo code is below to give an idea of what I am looking for but I have tried different ways and come up with nothing that works.
var selection = Umbraco.Content(Guid.Parse(theGUID))
.Where([PRODUCTCODE IS IN TAGLIST X)
.Where(x => x.IsVisible())
I have also tried googling searching nodes that appear in tag list but it just comes up with lots of articles about searching nodes which contain something in their taglist. Any help or pointers would be appreciated.
var myFilteredArticles = articles.Where(x => x.Value("category") != null && ((string)x.Value("category")).Any(y => y.ToLower().Contains(category.ToLower())));
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted