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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...