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
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?
Nevermind, the media section was a mess. This works fine.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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:
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?
Nevermind, the media section was a mess. This works fine.
is working on a reply...