Is there anyway to be able to add a thumbnail image to each post so that when I create a listing page it can show the thumbnail to the side of the excerpt?
Is it as simple as adding an extra property to the Articulate Post data type? and then render it in my list view? or will this cause issues else where?
You can add whatever you want, it's just normal Umbraco. PostModel IS IPublishedContent it just has strongly typed properties. So go ahead, add the extra property and try it out... never any harm in just trying these things.
I've added a MediaPicker property to the blogpost document type, but I just can't seem to get the media reference. I'm really clueless as to how to do it!
I can get the Media NodeId by doing this:
@{ var image = Model.GetPropertyValue("topImage"); }
But I don't know how to get the Umbraco Media-reference from here, so I can output an image-URL. I've tried wrapping it in Umbraco.Media(image), but I get this error:
Compiler Error Message: CS0234: The type or namespace name 'Media' does not exist in the namespace 'Umbraco' (are you missing an assembly reference?)
So how do I get the Umbraco Media, when I can't use the Umbraco Helper?
Thumbnail image
Is there anyway to be able to add a thumbnail image to each post so that when I create a listing page it can show the thumbnail to the side of the excerpt?
Is it as simple as adding an extra property to the Articulate Post data type? and then render it in my list view? or will this cause issues else where?
Thanks, Carl
I've seen the PostModel in the Articulate.dll so I'm not sure it is as easy as just adding the property into the datatype.
Most blogs I see these days show a thubmail image along side the excerpt on the listing pages, is this a difficult feature to add to Articulate?
See these as examples of what we are trying to do:
http://blog.uber.com/
http://blog.medallia.com/
You can add whatever you want, it's just normal Umbraco. PostModel IS
IPublishedContent
it just has strongly typed properties. So go ahead, add the extra property and try it out... never any harm in just trying these things.Ok thanks, I will give that a try... Well there could be if you spend a day trying and get nowhere ;)
So you did try it and couldn't get it working? or?
@Shannon
I've added a MediaPicker property to the blogpost document type, but I just can't seem to get the media reference. I'm really clueless as to how to do it!
I can get the Media NodeId by doing this:
But I don't know how to get the Umbraco Media-reference from here, so I can output an image-URL. I've tried wrapping it in Umbraco.Media(image), but I get this error:
Compiler Error Message: CS0234: The type or namespace name 'Media' does not exist in the namespace 'Umbraco' (are you missing an assembly reference?)
So how do I get the Umbraco Media, when I can't use the Umbraco Helper?
I'm getting kind of desperate.
I found the problem. The issue was, that I was doing this:
Instead of this:
Doing the latter gives you access to the Umbraco helper-methods.
is working on a reply...