Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @inherits Umbraco.Web.Mvc.UmbracoTemplatePage
- @using System;
- @{var siteRoot = Umbraco.TypedContentAtRoot().FirstOrDefault(); }
- <div class="container">
- <!-- Page Features -->
- <div class="row text-center">
- @{if (siteRoot != null)
- {
- var selection = siteRoot.FirstChild(f => f.Name == "Company Applications").Children.Where(f => f.HasProperty("ApplicationType"));
- foreach (var item in selection)
- {
- List<string> myTags = new List<string>();
- foreach (var newTag in item.GetPropertyValue<string>("ApplicationType").Split(','))
- {
- myTags.Add(newTag);
- }
- if (myTags.Contains("Teller"))
- {
- var myimage = Umbraco.TypedMedia(item.GetPropertyValue("ApplicationImage"));
- <p></p>
- <div class="col-md-3 col-sm-6 hero-feature">
- <div class="thumbnail">
- <img src="@myimage.Url" alt="">
- <div class="caption">
- <h3>@item.GetPropertyValue("ApplicationName")</h3>
- <p>@item.GetPropertyValue("ApplicationDescription")</p>
- <p>
- <a href="@item.GetPropertyValue("ApplicatioLinks")" class="btn btn-primary">Open</a> <a href="@item.Url" class="btn btn-default">More Info</a>
- </p>
- </div>
- </div>
- </div>
- }
- }
- }
- }
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement