Adding thumbnail to url property

Topics: Developer Forum
Dec 14, 2008 at 3:02 PM
Hello!

I am kind of new to N2 and need some help.

I have an itemlist property that contains eiither imageItems or videoItems. They have three details each, url of media, text to media and sortindex.

I want to extend the imageItems with a thumbnail  next to the urlselector. How do I achieve this?

Im not sure which approch I should choose.

Any help is appriciated.
Coordinator
Dec 14, 2008 at 8:06 PM
If it's a thumbnail for an image you could generate a thumbnail programmatically. Take a look at the image gallery for an example.

Movies are trickier. Why not an additional editable:
[EditableImage(...)]
public string ThumbnailUrl
{
    get { return GetDetail("ThumbnailUrl", "~/MissingThumbnail.jpg"); }
    set { SetDetail("ThumbnailUrl", value, "~/MissingThumbnail.jpg"); }
}

Finally. If you e.g. need the thumbnail on the same row as the url selector you can look into custom editors.
Dec 16, 2008 at 8:26 AM
Thanks alot for the help!