Example #1
0
 public HomeSlide(SPListItem item)
     : base(item)
 {            
     SPFieldUrlValue spLink = item.GetSiteColumnUrlValue(SiteColumns.LINK);
     _Title = item.File.Title;
     _Description = item.GetSiteColumnStringValue(SiteColumns.DESCRIPTION, string.Empty);            
     _LinkUrl = spLink == null ? string.Empty : spLink.Url;
     _LinkTitle = spLink == null ? string.Empty : spLink.Description;
     _ImageUrl = item.File.ServerRelativeUrl;
     _Color = item.GetSiteColumnStringValue(SiteColumns.COLOR, string.Empty);
 }