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
Hi how can I use the new feature In Umbraco 8.6 (media references) programmatically and get a list of nodes using specific media?
Hi,
These are stored as relations in Umbraco. You can use the RelationService to query them.
For the alias of the relation type you can use : Umbraco.Core.Constants.Conventions.RelationTypes.RelatedMediaAlias
Umbraco.Core.Constants.Conventions.RelationTypes.RelatedMediaAlias
Hi Dave
do you have a simple code example to get all nodes that have a specific image in their properties by image id?
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
How To Get Media References Umbraco 8.6
Hi how can I use the new feature In Umbraco 8.6 (media references) programmatically and get a list of nodes using specific media?
Hi,
These are stored as relations in Umbraco. You can use the RelationService to query them.
For the alias of the relation type you can use :
Umbraco.Core.Constants.Conventions.RelationTypes.RelatedMediaAlias
Hi Dave
do you have a simple code example to get all nodes that have a specific image in their properties by image id?
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.