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))
.ChildrenOfType("product")
.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.
Returning only nodes that appear in a tag list?!
Hi,
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.
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.
Thanks
is working on a reply...