I got similar query. Say I want to render only those products in my section which have the similar tags of my current page. So if I am at the product A page, I want to render only the image (in a section) who has tagged with product A. How can I achieve this?
So far I have tried `
How to query for mntp-value?
How can I query for nodes using this?
Something like newsList.Children().Where(x => x.GetPropertyValue<IEnumerable<IPublishedContent>>("services").Contains(Umbraco.Content(1136))).
But that gives me an error. CS1593: Delegate 'System.Func<Umbraco.Core.Models.IPublishedContent,int,bool>' does not take 1 arguments
Can anyone help? :)
Hi Søren,
Can I check that you want to check if a certain node is selected within the MNTP?
Thanks,
Jeavon
Exactly Jeavon.
Say I have a node A, with node 1, 2 and 3 selected within the MNTP.
I then want to query for nodes where node 2 is selected, where node A should show up.
Ok you should be able to do this:
But you might find better performance from checking against IDs:
Thanks, Jeavon, just what I needed :)
I got similar query. Say I want to render only those products in my section which have the similar tags of my current page. So if I am at the product A page, I want to render only the image (in a section) who has tagged with product A. How can I achieve this? So far I have tried `
which says: CS1593: Delegate 'System.Func
Any help?
Thanks in advance.
is working on a reply...