Copied to clipboard

Flag this post as spam?

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


  • Urvish 252 posts 776 karma points
    Jun 03, 2015 @ 07:48
    Urvish
    0

    Umbraco.Field not working in Umbraco 7.2.4

    Hi,

    I am working in Umbraco 7.2.4 website.

    I have created a document type , and inside that a propery called "content".

    Then created a template and also content page for that.

    So when I try to get that property in template using @Umbraco.Field("content") , it gives me below error.

    enter image description here

    Can anyone have idea about the same?

    Thanks in advance.

    Regards,

    Urvish Mandaliya

  • Tim 1193 posts 2675 karma points MVP 3x c-trib
    Jun 03, 2015 @ 13:21
    Tim
    0

    Can you post the full code for the template? Are you just trying to access it via the URL, or are you doing something else?

  • Urvish 252 posts 776 karma points
    Jun 03, 2015 @ 13:41
    Urvish
    0

    Hi Tim,

    Thanks for the reply.

    Below is my template.

    @inherits Umbraco.Web.Mvc.UmbracoTemplatePage
    <html lang="en">
       <head>
       </head>
       <body>
         <section class="page">
            @Umbraco.Field("content")
         </section>
       </body>
    </html>
    

    Yes I am trying to access this page via URL.

    And I have set a route for this URL that it will go to the Action and then redirect to the View.

    Regards,

    Urvish Mandaliya

Please Sign in or register to post replies

Write your reply to:

Draft