Last active
August 29, 2015 14:23
-
-
Save claushingebjerg/e20594689b60e34da175 to your computer and use it in GitHub Desktop.
Render slimsy responsive image, partial
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @inherits Umbraco.Web.Mvc.UmbracoTemplatePage | |
| <div> | |
| @if (CurrentPage.HasValue("imageID")) | |
| { | |
| var featureImage = Umbraco.Media(CurrentPage.imageID); | |
| <img style="max-width:100%;" src="@featureImage.GetResponsiveImageUrl(1400, 490)" alt="" /> | |
| } | |
| </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment