Building an Umbraco site, piece by piece from individually coded elements
Hi all,
I'm pretty new to this and have been given the job of building the company website in Umbraco. I am working with a designer who is coding individual elements - content boxes, banners, images - and handing over the html and css to me.
From what I understand, I will be creating partial views for each element and then calling each one using razor as and where they need to go. Am I right?
Big thanks in advance, I would not have gotten through my first week last week without you good people on this forum.
In short, yes that's pretty much what you will be doing. Look at each 'type of page' on the site, and see which parts of this will need to be 'content managed' edited via Umbraco; you'll use this information to create a 'document type' that will enable editors to enter information.
eg if your page has a title, and a body of html, you might create a document type with title and content properties, and call it 'Standard Page', you can then create a 'Standard Page' template, which is just an MVC view, and write out the properties of the document type in the correct positions within the html.
When you come to some functionality shared between views, eg an image gallery, or navigation; then you could as you suggest create a Partial View; to encompass the shared implementation, and call it at the appropriate point in the template.
Umbraco has the concept of 'Macros' which are like a 'wrapper' for a partial view; the benefit of using Macros over directly calling Html.Partial; is that editors can embed macros in rich text areas and in the grid; whereas Html.Partial you can only call from within your template views.
If you can twist someone's arm to buy you a months subscription to Umbraco TV in the 'secret santa' then you'll get the gist of all this from watching some of the Implementor videos...
and of course people here will help you in the forums if you get stuck on something; but only if you promise to help people in the future when you are an Umbraco Ninja.
I am so looking forward to being an Umbraco Ninja! I'm fresh from my Level 1 masterclass and have a Level 2 all booked for Jan but as I'm coming at all this from relative inexperience, I've been very reliant on asking questions. Thankfully, there are people in the world, like your good self, willing to take a newbie through it.
I'll take heed of all of your points here and crack on. Thanks again!
Building an Umbraco site, piece by piece from individually coded elements
Hi all,
I'm pretty new to this and have been given the job of building the company website in Umbraco. I am working with a designer who is coding individual elements - content boxes, banners, images - and handing over the html and css to me.
From what I understand, I will be creating partial views for each element and then calling each one using razor as and where they need to go. Am I right?
Big thanks in advance, I would not have gotten through my first week last week without you good people on this forum.
Emma
Hi Emma
In short, yes that's pretty much what you will be doing. Look at each 'type of page' on the site, and see which parts of this will need to be 'content managed' edited via Umbraco; you'll use this information to create a 'document type' that will enable editors to enter information.
eg if your page has a title, and a body of html, you might create a document type with title and content properties, and call it 'Standard Page', you can then create a 'Standard Page' template, which is just an MVC view, and write out the properties of the document type in the correct positions within the html.
When you come to some functionality shared between views, eg an image gallery, or navigation; then you could as you suggest create a Partial View; to encompass the shared implementation, and call it at the appropriate point in the template.
Umbraco has the concept of 'Macros' which are like a 'wrapper' for a partial view; the benefit of using Macros over directly calling Html.Partial; is that editors can embed macros in rich text areas and in the grid; whereas Html.Partial you can only call from within your template views.
If you can twist someone's arm to buy you a months subscription to Umbraco TV in the 'secret santa' then you'll get the gist of all this from watching some of the Implementor videos...
http://umbraco.tv/videos/umbraco-v7/implementor/
For learning Umbraco syntax then I recommend downloading and printing the Umbraco Razor Cheat sheets
https://our.umbraco.org/projects/developer-tools/umbraco-v6-mvc-razor-cheatsheets
The Umbraco Level 1 Fundamentals training course is another option to get your head around Umbraco in just two days:
https://umbraco.com/products-and-support/training/level-1-course/
Also downloading a StarterKit from Our Umbraco, can give you some good hints as to how other people have implemented Umbraco Sites:
https://our.umbraco.org/projects/?category=Starter%20Kits https://our.umbraco.org/projects/starter-kits/localgov-starter-kit
and of course people here will help you in the forums if you get stuck on something; but only if you promise to help people in the future when you are an Umbraco Ninja.
regards
Marc
Hi Marc,
I am so looking forward to being an Umbraco Ninja! I'm fresh from my Level 1 masterclass and have a Level 2 all booked for Jan but as I'm coming at all this from relative inexperience, I've been very reliant on asking questions. Thankfully, there are people in the world, like your good self, willing to take a newbie through it.
I'll take heed of all of your points here and crack on. Thanks again!
Emma
is working on a reply...