Umbraco.TypedMedia returns blank results on my page
Just to give a little background, I'm building a custom search results page with examine. It will be indexing both content and media. On my razor template, I'm investigating the use of Umbraco.TypedMedia to reference media properties.
How do we use TypedMedia to call system fields like parentID, updateDate and nodeTypeAlias
Here is a little piece of my code on my search page...
var media = Umbraco.TypedMedia(searchResult.Id);
How can I move forward with it? because I attempted to do the following...
I just discovered the answer to my own question. Umbrao.TypedMedia like a wrapper for IPublishedContent Property Access, but for media assets. So I can reference all the built-in properties available for it, in addition to my custom properties.
Umbraco.TypedMedia returns blank results on my page
Just to give a little background, I'm building a custom search results page with examine. It will be indexing both content and media. On my razor template, I'm investigating the use of Umbraco.TypedMedia to reference media properties.
parentID
,updateDate
andnodeTypeAlias
Here is a little piece of my code on my search page...
How can I move forward with it? because I attempted to do the following...
...but this result shows up blank on my page. (no errors). I tried to rebuild my index from Examine Management, but its still blank....
Thanks for any suggestions
I just discovered the answer to my own question. Umbrao.TypedMedia like a wrapper for IPublishedContent Property Access, but for media assets. So I can reference all the built-in properties available for it, in addition to my custom properties.
I'm good.
is working on a reply...