Copied to clipboard

Flag this post as spam?

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


  • Manisha Singla 17 posts 97 karma points
    May 14, 2018 @ 11:46
    Manisha Singla
    0

    Error on Blog Page

    Hi,

    My Page is giving following error. The model item passed into the dictionary is of type 'Umbraco.Web.Models.PartialViewMacroModel', but this dictionary requires a model item of type 'ContactFormViewModel'.

    My Code of page is: @inherits Umbraco.Web.Mvc.UmbracoTemplatePage

    @Umbraco.RenderMacro("Header")

            <div class="header-md parallax parallax-overlay-dark mrg-btm-30 head-with-bredcrumbs bg-blog-detail" style="background-image:url(@Umbraco.Media(Model.Content.GetPropertyValue("headerimage").ToString()).Url)">
    
    
    
               <div class="container clearfix">
          <div class="row clearfix">
            <div class="col-md-12 column">
              <div class="">
                <div class="text-center">
    
                    <h1 class="text-left">@Umbraco.Field("blogHeader")</h1>
                </div>
                <div class="breadcrumb arrow text-center mrg-top-15" style="">
                    <div class="breadcrumbs">
                        @Umbraco.RenderMacro("Breadcrumbs")
                    </div>
                </div>
               </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <section id="classic-right" class="section-2 services section-p-60px border"  data-sticky_parent>
    <div class="container">
      <div class="row">
          <div class="col-md-8  data-sticky_column">
                <div class="blog-page classic">
                   <div class="post-content head-with-para">
    
                       @Umbraco.RenderMacro("Social")
                    <div class="post-meta">
                      <p>
                        <i class="ti-tag pdd-right-5"></i>@Umbraco.Field("authors")
                        <span class="pdd-horizon-5">/</span>
                        <i class="ti-time pdd-right-5"></i>
                        <span>@Umbraco.Field("blogDate")</span>
                      </p>
                    </div>
    
                    <p class="post-inner-content mrg-top-15">
                     @Umbraco.Field("blogBodyText")
    
                    </p>
    
                  </div>
           </div>
            <div class="blogboxDetailsleft"> 
                        <div class="row">
    
                            <!--<div class="col-md-12">
                                <span class="img">
                                    <img src="/media/1343/aarti.png" alt="Aarti Chandela" class="img-responsive border" data-was-processed="true">
                                </span>
    
                            </div>-->
    
                            <div class="col-md-2 PositionRelative">
                                <span class="img">
                                    <img [email protected](Model.Content.GetPropertyValue("authorimage").ToString()).Url  class="img-responsive border" data-was-processed="true">
                                </span>
                            </div>
                            <div class="col-md-10 padding-left-0">
                                <span class="tittle-post">@Umbraco.Field("authors") <span class="small"> @Umbraco.Field("authorProfile")</span> </span>
                            </div>
    
                        </div>
                       </div>
        </div>
       <div class="col-md-3 col-md-offset-1 blog-page-sidebar">
    
          <div class="sidebar-widget">
              <div class="head-with-para">
                  <div class="title">Recent Post</div>
    
                </div>
    

    @Umbraco.RenderMacro("DynamicBlogsUpdated") @Umbraco.Field("richlinks")

    @Umbraco.RenderMacro("Footer")

Please Sign in or register to post replies

Write your reply to:

Draft