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 am trying to get the values (dimension) of a media item for the images within my partial view.
Using Umbraco 7.
Code:
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
<img src="@Umbraco.TypedMedia(Model.Content.GetPropertyValue("ctaImage")).Url" alt="@Model.Content.GetPropertyValue("ctaTitle")" height="" border="0" width="">
Hi Ed,
Are you using the default "Image" media type or a custom media type?
Jeavon
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Media Item Propreties
I am trying to get the values (dimension) of a media item for the images within my partial view.
Using Umbraco 7.
Code:
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
<img src="@Umbraco.TypedMedia(Model.Content.GetPropertyValue("ctaImage")).Url" alt="@Model.Content.GetPropertyValue("ctaTitle")" height="" border="0" width="">
Hi Ed,
Are you using the default "Image" media type or a custom media type?
Jeavon
is working on a reply...