Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: Displaying images in datatypes

$
0
0
I'm new to Composite C1 and am currently learning the ropes so far it's going very well but I have run in to a small, but hopefully simple problem.

I have created a datatype called feature that has Data Reference field of type C1 Image File, adding features and picking images is fine but I'm not entirely sure how I'm supposed to display the image on the front end in a razor function? If I add

feature.Image to my cshtml page I just get Image MediaArchive:18ea01f7-d1bc-4540-8d11-7b2b078b3ec9 in the output. How do I convert this in to a valid url?

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>