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...
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.
Continue discussion
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...
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.