There are four query strings that are available only for image files:
- width, height -> the strings provide measures and the image is stretched to fit in them. Example:
- decreaseOnly -> when true, the image could only be decreased to fit in the measures set by the width and height strings. Still, if the image is smaller, it would not be enlarged. Example:
- proportional -> when true (by default), the image is stretched only proportionally until it fits in the measures set by the width and height strings. Example:
If you want to show different data for the Thumbanail - if it is stored in Images and Documents it is IContent object that you can easily access from SetItemMetaData method of NewsView control.
SetItemMetadata(System.Web.UI.Control itemContainer, IContent contentItem)
// this will return the ID with the provider name
// you can get the ID from here and then access the image
thumb = (
To get the url to link to the actual news item you can call - contentItem.UrlWithExtension
. Actually there is no straight forward way to get the full URL beacause the control does not know the page where NewsView control is located. We use relative urls. So you need to build the url. You may find the following post useful - Getting your news articles full url.
I hope this helps.
the Telerik team