Copied to clipboard

Flag this post as spam?

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


  • Niker 2 posts 72 karma points
    Jan 14, 2019 @ 17:21
    Niker
    0

    Does not display data templates in the layout

    Hello, I've created Layout and the data types for it then I've created the child page and do not show me the data types for the layout. Layout:

        @inherits Umbraco.Web.Mvc.UmbracoTemplatePage<ContentModels.Layaut2>
    @using ContentModels = Umbraco.Web.PublishedContentModels;
    @{
        Layout = null;
    }
    @Umbraco.Field("MyApp2")
    <h1>Hello</h1>
    @RenderBody()
    

    does not display MyApp2

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    Jan 14, 2019 @ 20:19
    Dennis Aaen
    0

    Hi Niker

    First of all welcome to Our :)

    By default when you add a name to a field in Umbraco CMS the alias will start wil lowercase so in your case the alias will be

    @Umbraco.Field("myApp2")

    Can you give this a go and see if this works for you

    Also make sure at the page that you are viewing in the browser has this field on the page in the backoffice

    Hope this helps,

    /Dennis

  • Niker 2 posts 72 karma points
    Jan 15, 2019 @ 11:24
    Niker
    0

    Unfortunately it does not work.

Please Sign in or register to post replies

Write your reply to:

Draft