Copied to clipboard

Flag this post as spam?

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


  • Joshua 3 posts 73 karma points
    Feb 28, 2019 @ 14:07
    Joshua
    0

    The type or namespace name 'Startsida' does not exist in the namespace 'Umbraco.Web.PublishedModels'

    I dont get it. Why do I get this error when I have everything set up perfectly? When I delete this line it works fine. But then @Model.Value("PageTitle") wont work.

    Here is my code:

    @inherits Umbraco.Web.Mvc.UmbracoViewPage<ContentModels.Startsida>
    

    @using ContentModels = Umbraco.Web.PublishedModels; @{ Layout = "master.cshtml"; }

    <!-- Banner -->
            <section id="banner">
                <i class="icon fa-diamond"></i>
                <h2>@Model.Value("pageTitle")</h2>
                <p>@Model.Value("bodyText")</p>
                <ul class="actions">
                    <li><a href="#" class="button big special">Learn More</a></li>
                </ul>
            </section>
    
        <!-- One -->
            <section id="one" class="wrapper style1">
                <div class="inner">
                    <article class="feature left">
                        <span class="image"><img src="images/pic01.jpg" alt="" /></span>
                        <div class="content">
                            <h2>Integer vitae libero acrisus egestas placerat  sollicitudin</h2>
                            <p>Sed egestas, ante et vulputate volutpat, eros pede semper est, vitae luctus metus libero eu augue. Morbi purus libero, faucibus adipiscing, commodo quis, gravida id, est.</p>
                            <ul class="actions">
                                <li>
                                    <a href="#" class="button alt">More</a>
                                </li>
                            </ul>
                        </div>
                    </article>
                    <article class="feature right">
                        <span class="image"><img src="images/pic02.jpg" alt="" /></span>
                        <div class="content">
                            <h2>Integer vitae libero acrisus egestas placerat  sollicitudin</h2>
                            <p>Sed egestas, ante et vulputate volutpat, eros pede semper est, vitae luctus metus libero eu augue. Morbi purus libero, faucibus adipiscing, commodo quis, gravida id, est.</p>
                            <ul class="actions">
                                <li>
                                    <a href="#" class="button alt">More</a>
                                </li>
                            </ul>
                        </div>
                    </article>
                </div>
            </section>
    
        <!-- Two -->
            <section id="two" class="wrapper special">
                <div class="inner">
                    <header class="major narrow">
                        <h2>Aliquam Blandit Mauris</h2>
                        <p>Ipsum dolor tempus commodo turpis adipiscing Tempor placerat sed amet accumsan</p>
                    </header>
                    <div class="image-grid">
                        <a href="#" class="image"><img src="images/pic03.jpg" alt="" /></a>
                        <a href="#" class="image"><img src="images/pic04.jpg" alt="" /></a>
                        <a href="#" class="image"><img src="images/pic05.jpg" alt="" /></a>
                        <a href="#" class="image"><img src="images/pic06.jpg" alt="" /></a>
                        <a href="#" class="image"><img src="images/pic07.jpg" alt="" /></a>
                        <a href="#" class="image"><img src="images/pic08.jpg" alt="" /></a>
                        <a href="#" class="image"><img src="images/pic09.jpg" alt="" /></a>
                        <a href="#" class="image"><img src="images/pic10.jpg" alt="" /></a>
                    </div>
                    <ul class="actions">
                        <li><a href="#" class="button big alt">Tempus Aliquam</a></li>
                    </ul>
                </div>
            </section>
    
        <!-- Three -->
            <section id="three" class="wrapper style3 special">
                <div class="inner">
                    <header class="major narrow ">
                        <h2>Magna sed consequat tempus</h2>
                        <p>Ipsum dolor tempus commodo turpis adipiscing Tempor placerat sed amet accumsan</p>
                    </header>
                    <ul class="actions">
                        <li><a href="#" class="button big alt">Magna feugiat</a></li>
                    </ul>
                </div>
            </section>
    
        <!-- Four -->
            <section id="four" class="wrapper style2 special">
                <div class="inner">
                    <header class="major narrow">
                        <h2>Get in touch</h2>
                        <p>Ipsum dolor tempus commodo adipiscing</p>
                    </header>
                    <form action="#" method="POST">
                        <div class="container 75%">
                            <div class="row uniform 50%">
                                <div class="6u 12u$(xsmall)">
                                    <input name="name" placeholder="Name" type="text" />
                                </div>
                                <div class="6u$ 12u$(xsmall)">
                                    <input name="email" placeholder="Email" type="email" />
                                </div>
                                <div class="12u$">
                                    <textarea name="message" placeholder="Message" rows="4"></textarea>
                                </div>
                            </div>
                        </div>
                        <ul class="actions">
                            <li><input type="submit" class="special" value="Submit" /></li>
                            <li><input type="reset" class="alt" value="Reset" /></li>
                        </ul>
                    </form>
                </div>
            </section>
    
  • louisjrdev 107 posts 343 karma points c-trib
    Feb 28, 2019 @ 14:17
    louisjrdev
    0

    Do you have models builder turned on? Do you have a model / doctype called starsida? Have you tried building the solution?

Please Sign in or register to post replies

Write your reply to:

Draft