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 do I put images into my Razor view files in Umbraco 10? @Modle.Value("image") returns a:
Umbraco.Cms.Core.Models.MediaWithCrops`1[Umbraco.Cms.Web.Common.PublishedModels.Image]
What more would I need to pull in my image from the property editor?
Thanks! Brian
https://docs.umbraco.com/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/media-picker-3#mvc-view-example
Model.Value<MediaWithCrops>("propertyValue")
Awesome, thanks so much - stumbled across this a while after posting this and got things working properly.
Appreciate the reply!
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
Rendering Images in Umbraco 10 Razor View
Hi,
How do I put images into my Razor view files in Umbraco 10? @Modle.Value("image") returns a:
Umbraco.Cms.Core.Models.MediaWithCrops`1[Umbraco.Cms.Web.Common.PublishedModels.Image]
What more would I need to pull in my image from the property editor?
Thanks! Brian
https://docs.umbraco.com/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/media-picker-3#mvc-view-example
Awesome, thanks so much - stumbled across this a while after posting this and got things working properly.
Appreciate the reply!
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.