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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.