Copied to clipboard

Flag this post as spam?

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


  • Mason 2 posts 22 karma points
    Dec 23, 2014 @ 01:45
    Mason
    0

    Using content in a master layout.

    Hello, I am a regular MVC developer learning the Umbraco cms.

    I am trying to set up a master layout with a sidebar of user-edited content (called Navigation Sidebar, which has its own template and document type).

     <div class="container body-content">
        <div class=".col-md-2">
            @* Insert Sidebar Navigation Content Here *@
        </div>
        <div class=".col-md-10">
            @RenderBody()
        </div>
    </div>
    

    Is this possible?

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Dec 23, 2014 @ 02:34
    Dennis Aaen
    0

    Hi Mason, and welcome to our.

    To create your sidebar navigation content you need to write some Razor for instance this could be in a  partial view or partial view macro, or just have your Razor code directly in your template. But to make this work you need to travel your content tree to pull out the pages that you want in your sidebar navigation. It could for instance be the children of the page that you are viewing in the browser.

    Umbraco comes with some pre razor code snippets, these can be excllent for a starting point, and then you can modify them to you what you need. Here are some written documentation on how to create a basic site. http://our.umbraco.org/documentation/Using-Umbraco/Creating-Basic-Site/ here are an example on how to get children of the current page. http://our.umbraco.org/documentation/Using-Umbraco/Creating-Basic-Site/Articles-Parent-and-Article-Items

    Another good Newbie's Guide to Setting Up an Umbraco Website, is from this year advent calendar written by Blake Smith, you can find the post here: http://24days.in/umbraco/2014/how-to-set-up-an-umbraco-site/

    In addition to the written documentation, you will so be able to find some videos toturials on how to work with Umbraco on Umbraco TV. The video tutorias are showing the basic concepts of working with Umbraco. Some of the videos are free to watch, but other requires that you subscribe to Umbraco TV. You can find the plans and prices here: http://umbraco.tv/plans-signup/

    You can find the videos about how to edit content in your Umbraco installation here http://umbraco.tv/videos/umbraco-v7/content-editor/, you will also find free videos about how you setup the backend, with templates stylesheets, and so on here. http://umbraco.tv/videos/umbraco-v7/implementor/ On of the milestones in Umbraco is the concept called document types. On the document types you difine which fields should be editble for the user. If you have a page document type you could for instance have fields for headline, teaser body text and so on, here are the video chapter about document types. http://umbraco.tv/videos/umbraco-v7/implementor/fundamentals/document-types/what-is-a-document-type/

    If you have further questions about this don't hesitate to ask them.

    Hope this helps,

    /Dennis

  • Mason 2 posts 22 karma points
    Dec 23, 2014 @ 03:17
    Mason
    0

    Yes, this helps a lot. Thank you!

Please Sign in or register to post replies

Write your reply to:

Draft