Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Martin 278 posts 662 karma points
    Aug 26, 2015 @ 09:15
    Martin
    0

    Update Media Item

    Hi all,

    Is there a best practice for when a media item image is updated in the media section, so that the image is updated throughout the site.

    Im finding that if i update an image, then the media url changes.

    Im also currently using the following razor snippet in my partial.

    var image = item.GetPropertyValue<IPublishedContent>("featureImage");
    <img src="@image.Url"/>
    

    Any help would be grateful. Martin

  • Martin 278 posts 662 karma points
    Aug 26, 2015 @ 09:31
    Martin
    0

    Hi all,

    Is there a best practice for when a media item image is updated in the media section, so that the image is updated throughout the site.

    Im finding that if i update an image, then the media url changes.

    Im also currently using the following razor snippet in my partial.

    var image = item.GetPropertyValue<IPublishedContent>("featureImage");
    <img src="@image.Url"/>
    

    Any help would be grateful. Martin

    ** Edit

    Sorry - Im just tested this out again and it seem to be only be images that are dropped into the grid that are not updated

Please Sign in or register to post replies

Write your reply to:

Draft