Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • musab 4 posts 24 karma points
    Mar 15, 2014 @ 13:04
    musab
    0

    Error after installing

    I'm getting this on my website after installing 

    Standard Website MVC

    http://our.umbraco.org/projects/starter-kits/standard-website-mvc

     

     

    @inherits Umbraco.Web.Mvc.UmbracoTemplatePage @{ Layout = "SW_Master.cshtml"; }

      @{ var nodeIds = Model.Content.GetPropertyValue("slideshow").ToString().Split(','); List slides = new List(); foreach (var nodeId in nodeIds) { if (!String.IsNullOrEmpty(nodeId)) { var publishedContent = Umbraco.NiceUrl(Convert.ToInt32(nodeId)); if (!String.IsNullOrEmpty(publishedContent) && publishedContent != "#") { slides.Add(Umbraco.TypedContent(nodeId)); } } } } @foreach (var slide in slides) { if(slide != null) { string styleString = !slide.IsFirst() ? "display:none;" : "";
    • @slide.Name
      @Html.Raw(slide.GetPropertyValue("bodyText"))
    • } }
      @foreach (var slide in slides) { string classString = slide.IsFirst() ? "selected" : "";
    • @slide.Position()
    • }
    @Html.Raw(Model.Content.GetPropertyValue("panelContent1").ToString())
    @Html.Raw(Model.Content.GetPropertyValue("panelContent2").ToString())
    @Html.Raw(Model.Content.GetPropertyValue("panelContent3").ToString())
  • musab 4 posts 24 karma points
    Mar 15, 2014 @ 13:15
    musab
    0

    I was able to resolve this issue by creating pageContent in partial view macros files. But the website is totally empty no menus no text !

Please Sign in or register to post replies

Write your reply to:

Draft