I just need to display a single image from a media picker field in a document type. Each document as a single image. I'm trying to find a razor snippet to do this since it appears xslt is going away.
Document type = RightSidebar Property = pageImage
Using Umbraco 4.7.1
Did a lot of searching and couldn't quite find what I needed.
Display Single Image Using Razor
Greetings.
I just need to display a single image from a media picker field in a document type. Each document as a single image. I'm trying to find a razor snippet to do this since it appears xslt is going away.
Document type = RightSidebar
Property = pageImage
Using Umbraco 4.7.1
Did a lot of searching and couldn't quite find what I needed.
Thanks.
Should be as easy as using the following in a macro:
Whoops, left something out there. I've edited my last post to include the .umbracoFile property.
Should I create a scripting file with that in it? Or some other type of Macro?
Thanks.
Yes, you'll create a razor (cshtml) script and then map a macro to it.
Awesome. worked. thanks a bunch.
No problemo!
is working on a reply...