Copied to clipboard

Flag this post as spam?

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


  • lucuma 261 posts 563 karma points
    Jun 17, 2014 @ 16:15
    lucuma
    0

    TypedMedia Custom Property doesn't exist

    Umbraco 6.1.6

    I've added a custom property to the Image media type (photoDescription).

    http://screencast.com/t/6FZXO98I

    The media item has a value: http://screencast.com/t/3ZUDgtP1bKpR

    However when trying to pull that value, it doesn't exist or is blank:

    var imgItem = Umbraco.TypedMedia(item);
    var title = "title:" +imgItem.GetPropertyValue<string>("photoDescription");
    

    title is always empty (or in this case says title:)

    Is there a way to pull custom properties from a typedmedia? I also looped over each Property and it isn't in the collection. What am I missing?

  • lucuma 261 posts 563 karma points
    Jun 17, 2014 @ 16:50
    lucuma
    0

    Nevermind, the media section was a mess. This works fine.

  • 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.

Please Sign in or register to post replies