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 would like to get articles which have the same magazine as a generic property.
How would one create such a search?
var articles = Umbraco.Content("827"); //Contain all articles
Hey Nicolai
if you are using uQuery you can try something like this var articles = currentPage.GetDescendantNodes().Where(x => x.GetProperty<int>("homepageArticleMagazine") == 827);
var articles = currentPage.GetDescendantNodes().Where(x => x.GetProperty<int>("homepageArticleMagazine") == 827);
I've just tested this and it does not work unfortunately :-(
It gives me, Error loading Partial View script
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Get all nodes with same generic property
I would like to get articles which have the same magazine as a generic property.
How would one create such a search?
Hey Nicolai
if you are using uQuery you can try something like this
var articles = currentPage.GetDescendantNodes().Where(x => x.GetProperty<int>("homepageArticleMagazine") == 827);
I've just tested this and it does not work unfortunately :-(
It gives me, Error loading Partial View script
is working on a reply...