Copied to clipboard

Flag this post as spam?

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


  • Naman 20 posts 101 karma points
    Mar 29, 2016 @ 12:31
    Naman
    0

    Understanding Umbraco Structure

    Hi All,

    I have started learning umbraco using MVC.

    I was having a look the .cshtml files (Base.cshtml, Embed.cshtml, Macro.cshtml, Media.cshtml, Rte.cshtml and Textstring.cshtml) under Partial Views>>Grid>>Editors folder in Settings section.

    Also i find two files named (Bootstrap2.cshtml and Bootstrap3.cshtml) under Partial Views>>Grid folder in Setting section.

    I am not sure what their purpose is and how they could be useful for development to developer.

    Please help me on this.

  • Dennis Adolfi 1071 posts 6356 karma points MVP 2x c-trib
    Mar 29, 2016 @ 12:44
    Dennis Adolfi
    0

    Hi Naman! They are used to render the grid in the fontend. Have you had a look at the Grid yet? Try and create a document type with a property with the grid datatype. Then in your view, you write:

    @CurrentPage.GetGridHtml("aliasForProperty")
    

    Thats all you have to think about out of the box, you´ll dont ever have to change anything in the /Partials/Grid folder.

    Good luck!

  • Dennis Aaen 4448 posts 17912 karma points admin hq c-trib
    Mar 29, 2016 @ 13:43
    Dennis Aaen
    1

    Hi Naman,

    As Dennis mentions this is for the grid layout in Umbraco. If you want to know more about the grid layout, take a look at this written and video documentation.

    https://our.umbraco.org/documentation/getting-started/backoffice/property-editors/built-in-property-editors/grid-layout

    http://umbraco.tv/videos/umbraco-v7/implementor/fundamentals/grid-layouts/ (Requires that you have an Umbraco TV subscription)

    Hope this helps,

    /Dennis

Please Sign in or register to post replies

Write your reply to:

Draft