public ContentItem(INode node) : base(node) { Header = Node.GetProperty <string>("header"); BodyText1 = new HtmlString(Node.GetProperty <string>("bodyText1")); BodyText2 = new HtmlString(Node.GetProperty <string>("bodyText2")); BodyText3 = new HtmlString(Node.GetProperty <string>("bodyText3")); Manchet = new HtmlString(Node.GetProperty <string>("manchet")); Icon1 = new HtmlString(Node.GetProperty <string>("icon1")); Icon2 = new HtmlString(Node.GetProperty <string>("icon2")); Icon3 = new HtmlString(Node.GetProperty <string>("icon3")); RecipientEmail = Node.GetProperty <string>("recipientEmail"); FirmName = Node.GetProperty <string>("firmName"); Address = Node.GetProperty <string>("address"); ZipCode = Node.GetProperty <string>("zipCode"); Phone = Node.GetProperty <string>("phone"); NodeTypeAlias = UmbracoEnum.GetDocType(node); if (string.IsNullOrWhiteSpace(Header) || string.IsNullOrEmpty(Header)) { Header = Node.Name; } WebsiteUrl = Node.GetProperty <string>("websiteUrl"); WebsiteName = Node.GetProperty <string>("websiteName"); }
public Employee(INode node) : base(node) { Name = Node.GetProperty <string>("name"); if (string.IsNullOrWhiteSpace(Name) || string.IsNullOrEmpty(Name)) { Name = Node.Name; } Title = Node.GetProperty <string>("title"); Street = Node.GetProperty <string>("street"); ZipCode = Node.GetProperty <string>("zipCode"); City = Node.GetProperty <string>("city"); Email = Node.GetProperty <string>("email"); Phone = Node.GetProperty <string>("phone"); Mobile = Node.GetProperty <string>("mobile"); Motto1 = Node.GetProperty <string>("topText1"); Motto2 = Node.GetProperty <string>("topText2"); PictureUrl = CreatePictureUrl(Node.GetProperty <string>("image")); NodeTypeAlias = UmbracoEnum.GetDocType(node); Image = CreateImageItem(Node.GetProperty <string>("image")); }
public Car(INode node) : base(node) { Header = Node.GetProperty <string>("header"); Description = Node.GetProperty <string>("price"); PictureUrl = CreatePictureUrl(Node.GetProperty <string>("tileImage")); Link = NodeRepository.GetLink(Node.GetProperty <string>("link"), Node); NodeTypeAlias = UmbracoEnum.GetDocType(node); }
public SearchItem(INode node) : base(node) { Header = Node.GetProperty <string>("header"); HeaderSmall = Node.GetProperty <string>("headerSmall"); Description = Node.GetProperty <string>("description"); PictureUrl = CreatePictureUrl(Node.GetProperty <string>("tileImage")); LinkIntern = NodeRepository.GetLink(Node); LinkExtern = NodeRepository.GetLink(Node.GetProperty <string>("link")); NodeTypeAlias = UmbracoEnum.GetDocType(node); }
public Reference(INode node) : base(node) { Name = Node.GetProperty <string>("name"); if (string.IsNullOrWhiteSpace(Name) || string.IsNullOrEmpty(Name)) { Name = Node.Name; } Title = Node.GetProperty <string>("title"); BodyText1 = new HtmlString(Node.GetProperty <string>("bodyText1")); Link = Node.GetProperty <string>("link"); NodeTypeAlias = UmbracoEnum.GetDocType(node); Image = CreateImageItem(Node.GetProperty <string>("image")); }
public AreaItem(INode node) : base(node) { Header = Node.GetProperty <string>("header"); HeaderSmall = Node.GetProperty <string>("headerSmall"); HeaderCombobox = Node.GetProperty <string>("headerContactbox"); if (string.IsNullOrWhiteSpace(HeaderSmall) || string.IsNullOrEmpty(HeaderSmall)) { HeaderSmall = Header; } if (string.IsNullOrWhiteSpace(HeaderSmall)) { HeaderSmall = Node.Name; } PictureUrl = CreatePictureUrl(Node.GetProperty <string>("tileImage")); Link = NodeRepository.GetLink(Node.GetProperty <string>("link"), Node); NodeTypeAlias = UmbracoEnum.GetDocType(node); ContactEmail = Node.GetProperty <string>("areaEmail"); }